Defines classes for path effects. The path effects are supported in Text, Line2D and Patch.
Bases: object
A base class for path effects.
Subclasses should override the draw_path method to add effect functionality.
Parameters: | offset : pair of floats
|
---|
Derived should override this method. The arguments are the same as matplotlib.backend_bases.RendererBase.draw_path() except the first argument is a renderer.
Return a PathEffectRenderer instance for this PathEffect.
Bases: matplotlib.patheffects.AbstractPathEffect
The “identity” PathEffect.
The Normal PathEffect’s sole purpose is to draw the original artist with no special path effect.
Parameters: | offset : pair of floats
|
---|
Bases: matplotlib.backend_bases.RendererBase
Implements a Renderer which contains another renderer.
This proxy then intercepts draw calls, calling the appropriate AbstractPathEffect draw method.
Note
Not all methods have been overridden on this RendererBase subclass. It may be necessary to add further methods to extend the PathEffects capabilities further.
Parameters: | path_effects : iterable of AbstractPathEffect
renderer : matplotlib.backend_bases.RendererBase instance |
---|
Bases: matplotlib.patheffects.AbstractPathEffect
Draws a PathPatch instance whose Path comes from the original PathEffect artist.
Parameters: | offset : pair of floats
**kwargs :
|
---|
Bases: matplotlib.patheffects.AbstractPathEffect
A simple shadow via a line.
Parameters: | offset : pair of floats
shadow_color : color
alpha : float
rho : float
**kwargs
|
---|
Overrides the standard draw_path to add the shadow offset and necessary color changes for the shadow.
Bases: matplotlib.patheffects.AbstractPathEffect
A simple shadow via a filled patch.
Parameters: | offset : pair of floats
shadow_rgbFace : color
alpha : float
rho : float
**kwargs
|
---|
Overrides the standard draw_path to add the shadow offset and necessary color changes for the shadow.
Bases: matplotlib.patheffects.AbstractPathEffect
A line based PathEffect which re-draws a stroke.
The path will be stroked with its gc updated with the given keyword arguments, i.e., the keyword arguments should be valid gc parameter values.
draw the path with updated gc.
Bases: matplotlib.patheffects.SimplePatchShadow
Adds a simple SimplePatchShadow and then draws the original Artist to avoid needing to call Normal.
Parameters: | offset : pair of floats
shadow_rgbFace : color
alpha : float
rho : float
**kwargs
|
---|
Bases: matplotlib.patheffects.Stroke
Adds a simple Stroke and then draws the original Artist to avoid needing to call Normal.
The path will be stroked with its gc updated with the given keyword arguments, i.e., the keyword arguments should be valid gc parameter values.