Treemap

Backup Storage Tier Distribution

Dark-themed treemap showing backup storage distribution across different retention tiers and backup types.

Output
Backup Storage Tier Distribution
Python
import matplotlib.pyplot as plt
import squarify
import numpy as np

# Backup storage (in TB)
labels = ['Hot Backup', 'Warm 30-day', 'Cold 90-day', 'Archive 1-year',
          'Glacier Deep', 'DB Snapshots', 'VM Images', 'Config Backups']
sizes = [45, 85, 120, 280, 450, 65, 95, 18]
total = sum(sizes)

# CLAUDE.md colors - storage themed
colors = ['#C82909', '#F54927', '#F5B027', '#27D3F5', '#276CF5',
          '#5314E6', '#6CF527', '#27F5B0']

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

pct = [s/total*100 for s in sizes]
squarify.plot(sizes=sizes, 
              label=[f'{l}\n{s}TB ({p:.1f}%)' for l, s, p in zip(labels, sizes, pct)],
              color=colors, alpha=0.85, ax=ax,
              text_kwargs={'fontsize': 9, 'color': 'white', 'fontweight': 'bold'})

ax.axis('off')
ax.set_title(f'Backup Storage - {total/1000:.2f}PB Total', 
             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