Area Chart
Seasonality Pattern
Multiple years overlaid showing seasonal trends.
Output
Python
import matplotlib.pyplot as plt
import numpy as np
# Data - Multiple years overlaid
months = np.arange(1, 13)
years_data = {
'2022': [42, 45, 58, 72, 85, 95, 100, 98, 82, 65, 50, 45],
'2023': [45, 48, 62, 78, 90, 102, 108, 105, 88, 70, 55, 48],
'2024': [48, 52, 68, 85, 98, 112, 120, 115, 95, 78, 60, 52],
}
colors = {'2022': '#4927F5', '2023': '#27D3F5', '2024': '#F5276C'}
# Figure - DARK THEME
fig, ax = plt.subplots(figsize=(10, 6), facecolor='#0a0a0f')
ax.set_facecolor('#0a0a0f')
# Overlaid seasonal patterns
for year, values in years_data.items():
ax.fill_between(months, 0, values, alpha=0.25, color=colors[year])
ax.plot(months, values, color=colors[year], linewidth=2.5, label=year, marker='o', markersize=4)
# Styling
ax.set_xlabel('Month', color='white', fontsize=11)
ax.set_ylabel('Sales Index', color='white', fontsize=11)
ax.set_title('Seasonal Sales Pattern by Year', color='white', fontsize=14, fontweight='bold', pad=15)
ax.tick_params(colors='#888888', labelsize=9)
ax.set_xticks(months)
ax.set_xticklabels(['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'])
for spine in ax.spines.values():
spine.set_color('#333333')
ax.yaxis.grid(True, color='#1a1a2e', linewidth=0.5)
ax.set_xlim(1, 12)
ax.legend(facecolor='#0a0a0f', edgecolor='#333333', labelcolor='white')
plt.tight_layout()
plt.show()
Library
Matplotlib
Category
Basic Charts
More Area Chart examples
☕