Treemap
Hedge Fund Asset Allocation
Light-themed treemap showing hedge fund asset allocation across different strategies and asset classes.
Output
Python
import matplotlib.pyplot as plt
import squarify
import numpy as np
# Asset allocation (in millions)
labels = ['Long/Short Equity', 'Global Macro', 'Event Driven', 'Fixed Income Arb',
'Quantitative', 'Distressed', 'Multi-Strategy', 'Cash Reserves']
sizes = [380, 285, 195, 145, 220, 95, 165, 65]
total = sum(sizes)
# CLAUDE.md colors
colors = ['#276CF5', '#6CF527', '#F5276C', '#F5B027', '#5314E6',
'#C82909', '#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': 9, 'color': 'white', 'fontweight': 'bold'})
ax.axis('off')
ax.set_title(f'Hedge Fund AUM - ${total/1000:.2f}B Total',
fontsize=18, color='#1f2937', fontweight='bold', pad=20)
plt.tight_layout()
plt.show()
Library
Matplotlib
Category
Part-to-Whole
☕