Treemap

Cloud Storage Usage Breakdown

Dark-themed treemap showing cloud storage allocation across different file types and categories with hierarchical proportions.

Output
Cloud Storage Usage Breakdown
Python
import matplotlib.pyplot as plt
import squarify
import numpy as np

# Storage data (in GB)
labels = ['Videos', 'Photos', 'Documents', 'Apps', 'Backups', 
          'Music', 'Downloads', 'Cache', 'System', 'Other']
sizes = [450, 280, 120, 95, 180, 65, 45, 30, 55, 25]
total = sum(sizes)

# CLAUDE.md neon colors
colors = ['#F5276C', '#27D3F5', '#6CF527', '#F5B027', '#5314E6',
          '#F54927', '#27F5B0', '#276CF5', '#F527B0', '#C82909']

fig, ax = plt.subplots(figsize=(12, 8), facecolor='#0a0a0f')
ax.set_facecolor('#0a0a0f')

# Create treemap
squarify.plot(sizes=sizes, label=[f'{l}\n{s}GB' for l, s in zip(labels, sizes)],
              color=colors, alpha=0.85, ax=ax,
              text_kwargs={'fontsize': 11, 'color': 'white', 'fontweight': 'bold'})

ax.axis('off')
ax.set_title(f'Cloud Storage Usage - Total: {total/1000:.1f} TB', 
             fontsize=18, color='#f8fafc', fontweight='bold', pad=20)

plt.tight_layout()
plt.show()
Library

Matplotlib

Category

Part-to-Whole

Did this help you?

Support PyLucid to keep it free & growing

Support