mpl_visual_context.patheffects.Glow
- class mpl_visual_context.patheffects.Glow(n_glow_lines: int = 10, diff_linewidth: float = 1.05, alpha_line: float = 0.3, offset=(0, 0))
Patheffect with glow effect. Adopted from mplcybepunk. Each existing line is redrawn several times with increasing width and low alpha to create the glow effect.
Methods
draw_path(renderer, gc, tpath, affine, rgbFace)Draw the path with updated gc.
- __init__(n_glow_lines: int = 10, diff_linewidth: float = 1.05, alpha_line: float = 0.3, offset=(0, 0))
- Parameters:
offset ((float, float), default: (0, 0)) – The (x, y) offset to apply to the path, measured in points.
Methods
__init__([n_glow_lines, diff_linewidth, ...])draw_path(renderer, gc, tpath, affine, rgbFace)Draw the path with updated gc.