Treemap
Disk Space by File Type
Light-themed treemap showing disk space consumption by different file types on a development workstation.
Output
Python
import matplotlib.pyplot as plt
import squarify
import numpy as np
# Disk usage (in GB)
labels = ['node_modules', 'Docker Images', 'Git Repos', 'Virtual Envs',
'IDEs & Tools', 'Datasets', 'Build Artifacts', 'Media', 'Logs']
sizes = [145, 85, 65, 48, 35, 120, 28, 55, 18]
total = sum(sizes)
# CLAUDE.md colors
colors = ['#F5276C', '#27D3F5', '#6CF527', '#5314E6', '#F5B027',
'#276CF5', '#F54927', '#27F5B0', '#C82909']
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}GB ({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'Developer Machine Disk Usage - {total}GB Total',
fontsize=18, color='#1f2937', fontweight='bold', pad=20)
plt.tight_layout()
plt.show()
Library
Matplotlib
Category
Part-to-Whole
☕