import matplotlib.pyplot as plt
from mpl_visual_context.patheffects import Glow
from matplotlib.patheffects import Normal # For the original line

# Sample data
x = [0, 1, 2, 3, 4]
y = [0, 2, 1, 3, 1]

fig, ax = plt.subplots(figsize=(6, 4))
line, = ax.plot(x, y, linewidth=2, label="My Data")

# Apply a glow effect
line.set_path_effects([Glow(alpha_line=0.8, n_glow_lines=10), Normal()])

ax.set_title("Plot with Glow Effect")
ax.legend()
plt.show()