Patheffect with glow effect.
Patheffect similar to Glow, but with different colors basedon the given colormap.
ImageEffect APICollection of PathEffects classes.
Most of the PathEffects that inherit from ChainablePathEffect, and they can be pipelined using a | operator to make a custom patheffects. For example, “Smooth() | FillColor(‘r’)`” will smooth the path and fill the region in red.
These are list of patheffects currently available.
color modification : HLSModify, HLSaxb, ColorMatrix, FillColor, StrokeColor, FillColorFromStrokeColor, StrokeColorFromFillColor
path modification : Partial, Open, FillOnly, StrokeOnly, Smooth, SmoothFillBetween
clip modification : ClipPathFromPatch, ClipPathSelf, ClipRect
transform modification : Offset
other (non-chainable): FillImage, AlphaGradient, Glow, CmapGlow, ImageEffect
Note that PathEffects classified as “other (non-chainable)” are not inherited from ChainablePathEffect. They can be used in the pipeline but should be at the end (or immediatenly followed by ImageEffect, see below), i.e., “FillColor(‘r’) | Glow()” is okay but “Glow() | FillColor(‘r’)” is not.
The ImageEffect is very special. It should be at the end of the pipeline, even after other non-chainable PathEffects. It is a patheffect version of MPL’s agg filter. It will render the artist (w/ path effects in the pipeline) as an image (using the Agg backend), apply image processing (e.g., GaussianBlur), then place the image at the canvas.
Bases: ChainablePathEffect
PathEffect to apply affine trasnform the path. Note that this is applied before the affine of the path (this was intended to transform the text path)
Methods
draw_path
rotate_deg
scale
skew_deg
translate
Bases: GradientBase
Fill the path with image of the fill color of the path, with varying transparency.
Methods
draw_path
(renderer, gc, tpath, affine, rgbFace)
Derived should override this method.
Derived should override this method. The arguments are the same as matplotlib.backend_bases.RendererBase.draw_path()
except the first argument is a renderer.
Bases: ChainablePathEffect
PathEffect that clips the path using a provided patch.
Methods
Bases: ChainablePathEffect
PathEffect that sets the clip_path to the path itself. This is useful when the path is modified down in the pipeline.
Methods
Bases: ChainablePathEffect
PathEffect that modifies the clip_rect using the given coordinate (and transform). In most case, the default clip_rect is the bbox of the axes.
Methods
Bases: ClipboardBase
, dict
Methods
clear
()
copy
()
fromkeys
(iterable[, value])
Create a new dictionary with keys from iterable and values set to value.
get
(key[, default])
Return the value for key if key is in the dictionary, else default.
items
()
keys
()
pop
(key[, default])
If the key is not found, return the default if given; otherwise, raise a KeyError.
popitem
(/)
Remove and return a (key, value) pair as a 2-tuple.
setdefault
(key[, default])
Insert key with a value of default if key is not in the dictionary.
update
([E, ]**F)
If E is present and has a .keys() method, then does: for k in E: D[k] = E[k] If E is present and lacks a .keys() method, then does: for k, v in E: D[k] = v In either case, this is followed by: for k in F: D[k] = F[k]
values
()
get_clip_path
get_path
paste
Bases: AbstractPathEffect
Patheffect similar to Glow, but with different colors basedon the given colormap.
Methods
draw_path
(renderer, gc, tpath, affine, rgbFace)
Draw the path with updated gc.
Draw the path with updated gc.
Bases: ColorModifyStroke
PathEffect which modifies the color in RGB space, using a predefined color matrix. Supported matrix are ‘grayscale’, ‘sepia’, ‘nightvision’, ‘warm’ and ‘cool. Both stroke and fill color are changed.
Methods
Bases: ChainablePathEffect
PathEffect to set the fill color
Methods
Bases: ChainablePathEffect
PathEffect to set the fill color by the stroke color
Methods
Bases: AbstractPathEffect
Fill the path with the given image. It actually draws the image with its clip_path set to the path itself.
Methods
draw_path
(renderer, gc, tpath, affine, rgbFace)
Derived should override this method.
Derived should override this method. The arguments are the same as matplotlib.backend_bases.RendererBase.draw_path()
except the first argument is a renderer.
Bases: ChainablePathEffect
PathEffect with only fill. This is done by setting the linewidth to 0.
Methods
Bases: ChainablePathEffect
Methods
Bases: AbstractPathEffect
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.
Draw the path with updated gc.
Bases: GradientBase
Methods
draw_path
(renderer, gc, tpath, affine, rgbFace)
Derived should override this method.
Bases: HLSaxb
PathEffect which modifies the color in HLS space. Both stroke and fill color are changed.
Methods
Bases: ColorModifyStroke
PathEffect which modifies the color in HLS space. Given a tuple of (a, b), the new color is defiend as h’ = a * h + b, and so on. Both stroke and fill color are changed.
Methods
Bases: AbstractPathEffect
, ImageEffectBase
Methods
clear
draw_path
draw_with_path_effect
get_image
get_rendered_image
init_renderer
update_gc_n_affine
Bases: ChainablePathEffect
PathEffect that offsets the path.
Methods
Bases: ChainablePathEffect
PathEffect with no closed with. This is done by replacin CLOSEPOLY code to STOP.
Methods
Bases: ChainablePathEffect
PathEffect with that preserve only a part of the path. It only support lines (no bezier splines).
Methods
Bases: Affine
Similar to Affine, but it will be applied after the path’s affine.
Methods
draw_path
rotate_deg
scale
skew_deg
translate
Bases: ChainablePathEffect
PathEffect that apply offsets so that the given points to be zero.
Methods
Bases: ChainablePathEffect
Methods
Bases: ChainablePathEffect
PathEffect that transform the given lines to smooth bezier path. If the path is not line (not closed), the path is not changed.
Methods
Bases: Smooth
PathEffect that transform a patch created by fill_between to a smooth nezier path. It assumes that the patch is consist of two lines (one for upper/left boundary another for lower/right boundary), which are smoothed separately then combined.
Methods
Bases: ChainablePathEffect
PathEffect to set the stoke color
Methods
Bases: ChainablePathEffect
PathEffect to set the stoke color by the fill color
Methods
Bases: ChainablePathEffect
PathEffect with only stroke. This is done by setting the fill color to None.
Methods
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4