Horizon Chart
Disk I/O Throughput Horizon
System performance horizon chart showing disk read/write throughput with pink neon gradient.
Output
Python
import matplotlib.pyplot as plt
import numpy as np
COLORS = {
'read': ['#4d1a40', '#802066', '#F527B0'],
'write': ['#1a404d', '#266680', '#27D3F5'],
'background': '#0a0a0f',
'text': '#ffffff',
}
np.random.seed(2424)
seconds = np.arange(0, 600) # 10 minutes
base_read = 50 + np.random.exponential(20, len(seconds))
base_write = 30 + np.random.exponential(15, len(seconds))
backup_idx = (seconds > 200) & (seconds < 280)
base_write[backup_idx] += 100
io_diff = base_read - base_write
fig, ax = plt.subplots(figsize=(14, 3), facecolor=COLORS['background'])
ax.set_facecolor(COLORS['background'])
band = 40
ax.fill_between(seconds, 0, np.clip(io_diff, 0, band), color=COLORS['read'][0])
ax.fill_between(seconds, 0, np.clip(io_diff - band, 0, band), color=COLORS['read'][1])
ax.fill_between(seconds, 0, np.clip(io_diff - 2*band, 0, band), color=COLORS['read'][2])
ax.fill_between(seconds, 0, np.clip(io_diff, -band, 0), color=COLORS['write'][0])
ax.fill_between(seconds, 0, np.clip(io_diff + band, -band, 0), color=COLORS['write'][1])
ax.fill_between(seconds, 0, np.clip(io_diff + 2*band, -band, 0), color=COLORS['write'][2])
ax.axhline(0, color='#555555', linewidth=0.5)
ax.set_xlim(0, 599)
ax.set_ylim(-50, 50)
ax.set_title('Disk I/O Balance (Read vs Write MB/s)', color=COLORS['text'], fontsize=12, fontweight='bold', pad=10)
ax.set_xlabel('Time (seconds)', color=COLORS['text'], fontsize=10)
ax.set_ylabel('I/O (MB/s)', color='white', fontsize=10)
for spine in ax.spines.values():
spine.set_visible(False)
ax.tick_params(colors=COLORS['text'], labelsize=9)
plt.tight_layout()
plt.show()
Library
Matplotlib
Category
Time Series
More Horizon Chart examples
☕