Treemap
Video Streaming Bandwidth Distribution
Dark-themed treemap showing video streaming bandwidth usage across different quality levels and content types.
Output
Python
import matplotlib.pyplot as plt
import squarify
import numpy as np
# Bandwidth usage (TB/day)
labels = ['4K Movies', '1080p Movies', '4K Series', '1080p Series',
'720p Content', 'Live Sports 4K', 'Live Sports HD',
'Music Videos', 'Trailers']
sizes = [85, 120, 95, 145, 65, 45, 55, 28, 18]
total = sum(sizes)
# CLAUDE.md colors
colors = ['#5314E6', '#276CF5', '#27D3F5', '#6CF527', '#F5B027',
'#C82909', '#F54927', '#F5276C', '#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'Daily Streaming Bandwidth - {total}TB',
fontsize=18, color='#f8fafc', fontweight='bold', pad=20)
plt.tight_layout()
plt.show()
Library
Matplotlib
Category
Part-to-Whole
☕