Treemap
Private Equity Fund Allocation
Light-themed treemap showing private equity fund allocation across different investment sectors and stages.
Output
Python
import matplotlib.pyplot as plt
import squarify
import numpy as np
# PE investments (in millions)
labels = ['Healthcare', 'Technology', 'Consumer', 'Industrials',
'Financial Services', 'Energy', 'Real Estate', 'Infrastructure']
sizes = [285, 420, 195, 165, 145, 95, 180, 115]
total = sum(sizes)
# CLAUDE.md colors
colors = ['#6CF527', '#276CF5', '#F5276C', '#F5B027', '#5314E6',
'#F54927', '#27D3F5', '#27F5B0']
fig, ax = plt.subplots(figsize=(12, 8), facecolor='#ffffff')
ax.set_facecolor('#ffffff')
pct = [s/total*100 for s in sizes]
squarify.plot(sizes=sizes,
label=[f'{l}\n${s}M ({p:.1f}%)' for l, s, p in zip(labels, sizes, pct)],
color=colors, alpha=0.9, ax=ax,
text_kwargs={'fontsize': 10, 'color': 'white', 'fontweight': 'bold'})
ax.axis('off')
ax.set_title(f'PE Fund Allocation - ${total/1000:.2f}B AUM',
fontsize=18, color='#1f2937', fontweight='bold', pad=20)
plt.tight_layout()
plt.show()
Library
Matplotlib
Category
Part-to-Whole
☕