ECDF Plot
Customer Wait Times
Light theme ECDF for service wait time analysis
Output
Python
import matplotlib.pyplot as plt
import numpy as np
fig, ax = plt.subplots(figsize=(10, 6), facecolor='#ffffff')
ax.set_facecolor('#ffffff')
np.random.seed(42)
wait_times = np.random.exponential(5, 800)
ax.ecdf(wait_times, color='#ec4899', linewidth=2.5)
target = 10
ax.axvline(x=target, color='#059669', linestyle='--', linewidth=2, label=f'Target: {target} min')
pct_under_target = np.mean(wait_times <= target) * 100
ax.text(target + 0.5, 0.5, f'{pct_under_target:.1f}% under target',
fontsize=10, color='#059669')
ax.set_xlabel('Wait Time (minutes)', fontsize=12, color='#1f2937')
ax.set_ylabel('Cumulative Probability', fontsize=12, color='#1f2937')
ax.set_title('Customer Wait Time ECDF', fontsize=16, fontweight='bold', color='#1f2937', pad=20)
ax.legend(loc='lower right')
ax.grid(True, alpha=0.3)
for spine in ['top', 'right']:
ax.spines[spine].set_visible(False)
plt.tight_layout()
Library
Matplotlib
Category
Statistical
More ECDF Plot examples
☕