ECDF Plot
Delivery Time ECDF
Light theme showing package delivery time distribution
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)
delivery_days = np.random.gamma(3, 1.2, 800)
ax.ecdf(delivery_days, color='#7c3aed', linewidth=2.5)
target_2day = 2
target_5day = 5
ax.axvline(x=target_2day, color='#059669', linestyle='--', linewidth=2, label='2-day target')
ax.axvline(x=target_5day, color='#f59e0b', linestyle='--', linewidth=2, label='5-day target')
ax.set_xlabel('Delivery Time (days)', fontsize=12, color='#1f2937')
ax.set_ylabel('Cumulative Probability', fontsize=12, color='#1f2937')
ax.set_title('Package Delivery 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
☕