mpl.patheffects.SimpleLineShadow

class mpl.patheffects.SimpleLineShadow(offset=(2, -2), shadow_color=u'k', alpha=0.3, rho=0.3, **kwargs)[source]

A simple shadow via a line.

__init__(offset=(2, -2), shadow_color=u'k', alpha=0.3, rho=0.3, **kwargs)[source]
Parameters:

offset : pair of floats

The offset to apply to the path, in points.

shadow_color : color

The shadow color. Default is black. A value of None takes the original artist’s color with a scale factor of rho.

alpha : float

The alpha transparency of the created shadow patch. Default is 0.3.

rho : float

A scale factor to apply to the rgbFace color if shadow_rgbFace is None. Default is 0.3.

**kwargs

Extra keywords are stored and passed through to AbstractPathEffect._update_gc().

Methods

__init__([offset, shadow_color, alpha, rho])
Parameters:
draw_path(renderer, gc, tpath, affine, rgbFace) Overrides the standard draw_path to add the shadow offset and necessary color changes for the shadow.