Treemap

Blockchain Node Storage Distribution

Dark-themed treemap showing blockchain node storage distribution across different data types and chains.

Output
Blockchain Node Storage Distribution
Python
import matplotlib.pyplot as plt
import squarify
import numpy as np

# Node storage (in GB)
labels = ['Chain State', 'Transaction History', 'Block Headers', 'Smart Contracts',
          'Event Logs', 'Index Data', 'Mempool Cache', 'Receipts']
sizes = [180, 320, 85, 145, 95, 220, 45, 110]
total = sum(sizes)

# CLAUDE.md colors - blockchain themed
colors = ['#F5B027', '#5314E6', '#27D3F5', '#6CF527', '#F5276C',
          '#276CF5', '#F54927', '#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}GB ({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'Blockchain Node Storage - {total/1000:.2f}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