Area Chart

Watercolor Area

Artistic blurred edge effect.

Output
Watercolor Area
Python
import matplotlib.pyplot as plt
import numpy as np

# Data
np.random.seed(42)
x = np.linspace(0, 10, 100)
y = 4 + 2*np.sin(x) + np.sin(2*x + 1)

# Figure - LIGHT THEME
fig, ax = plt.subplots(figsize=(10, 6), facecolor='#ffffff')
ax.set_facecolor('#ffffff')

# Watercolor effect - multiple slightly offset fills
for i in range(30):
    offset = np.random.normal(0, 0.15, len(x))
    y_var = y + offset
    ax.fill_between(x, 0, y_var, alpha=0.05, color='#F5276C')

# Main line
ax.plot(x, y, color='#F5276C', linewidth=2, alpha=0.8)

# Styling
ax.set_xlabel('Time', color='#1f2937', fontsize=11)
ax.set_ylabel('Value', color='#1f2937', fontsize=11)
ax.set_title('Watercolor Effect Area', color='#1f2937', fontsize=14, fontweight='bold', pad=15)
ax.tick_params(colors='#374151', labelsize=9)
for spine in ax.spines.values():
    spine.set_color('#e5e7eb')
ax.spines['top'].set_visible(False)
ax.spines['right'].set_visible(False)
ax.set_xlim(0, 10)
ax.set_ylim(0, 8)

plt.tight_layout()
plt.show()
Library

Matplotlib

Category

Basic Charts

Did this help you?

Support PyLucid to keep it free & growing

Support