import matplotlib.pyplot as plt
import mplcyberpunk
plt.style.use("cyberpunk") # Using cyberpunk style for thematic background/colors
from matplotlib.patheffects import Normal
from mpl_visual_context.patheffects import Glow, AlphaGradient

fig, ax = plt.subplots()
x = range(7)
y1 = [1, 3, 9, 5, 2, 1, 1]
y2 = [4, 5, 5, 7, 9, 8, 6]

l1, = ax.plot(x, y1, marker='o')
l2, = ax.plot(x, y2, marker='o')
p1 = ax.fill_between(x, y1, alpha=0.6, color="magenta") # Base fill for context
p2 = ax.fill_between(x, y2, alpha=0.6, color="cyan")    # Base fill for context

# Apply Glow to lines
line_glow = [Glow(n_glow_lines=8), Normal()]
for l in [l1, l2]:
    l.set_path_effects(line_glow)

# Apply an upward AlphaGradient to the filled areas
# This will make the fill_between areas fade upwards
fill_gradient = [AlphaGradient("up")]
for p_fill in [p1, p2]: # Renamed p to p_fill to avoid conflict
    p_fill.set_path_effects(fill_gradient)
ax.set_ylim(bottom=0) # Ensure gradient direction is clear
plt.show()