Area Chart

Gradient Area

Smooth wave with gradient fill effect.

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

# Data
x = np.linspace(0, 10, 100)
y = 3 + 2*np.sin(x) + 0.5*np.sin(3*x)

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

# Gradient effect with NEON coral
for i in range(20):
    alpha = 0.04 * (20 - i)
    y_offset = y * (1 - i/25)
    ax.fill_between(x, 0, y_offset, color='#F5276C', alpha=alpha)

ax.plot(x, y, color='#F5276C', linewidth=2.5)

# Styling
ax.set_xlabel('Time', color='#1f2937', fontsize=11)
ax.set_ylabel('Amplitude', color='#1f2937', fontsize=11)
ax.set_title('Gradient Wave Pattern', 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.yaxis.grid(True, color='#f3f4f6', linewidth=0.5)
ax.set_xlim(0, 10)
ax.set_ylim(0, 6)

plt.tight_layout()
plt.show()
Library

Matplotlib

Category

Basic Charts

Did this help you?

Support PyLucid to keep it free & growing

Support