ECDF Plot
Bounce Rate ECDF
Dark theme ECDF showing website bounce rate distribution
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)
bounce_rate = np.clip(np.random.beta(3, 4, 600) * 100, 0, 100)
ax.ecdf(bounce_rate, color='#a78bfa', linewidth=2.5)
good = 40
poor = 70
ax.axvline(x=good, color='#22c55e', linestyle='--', linewidth=2, label=f'Good (<{good}%)')
ax.axvline(x=poor, color='#ef4444', linestyle='--', linewidth=2, label=f'Poor (>{poor}%)')
ax.set_xlabel('Bounce Rate (%)', fontsize=12, color='white')
ax.set_ylabel('Cumulative Probability', fontsize=12, color='white')
ax.set_title('Website Bounce Rate ECDF', fontsize=16, fontweight='bold', color='white', pad=20)
ax.tick_params(colors='white')
ax.set_xlim(0, 100)
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
☕