ECDF Plot
Disk I/O Latency ECDF
Dark theme ECDF showing storage performance
Output
Python
import matplotlib.pyplot as plt
import numpy as np
fig, ax = plt.subplots(figsize=(10, 6), facecolor='#0a0a0f')
ax.set_facecolor('#0a0a0f')
np.random.seed(42)
ssd = np.random.lognormal(0, 0.5, 500)
hdd = np.random.lognormal(2, 0.8, 500)
ax.ecdf(ssd, color='#22c55e', linewidth=2.5, label='SSD')
ax.ecdf(hdd, color='#f97316', linewidth=2.5, label='HDD')
ax.set_xlabel('I/O Latency (ms)', fontsize=12, color='white')
ax.set_ylabel('Cumulative Probability', fontsize=12, color='white')
ax.set_title('Disk I/O Latency Comparison', fontsize=16, fontweight='bold', color='white', pad=20)
ax.tick_params(colors='white')
ax.set_xlim(0, 50)
ax.legend(facecolor='#1a1a2f', edgecolor='#333', labelcolor='white')
ax.grid(True, alpha=0.2, color='white')
for spine in ax.spines.values():
spine.set_color('#333')
plt.tight_layout()
Library
Matplotlib
Category
Statistical
More ECDF Plot examples
☕