matplotlib.artist.Artist.set_sketch_params#

Artist.set_sketch_params(scale=None,length=None,randomness=None)[source]#

Set the sketch parameters.

Parameters:
scalefloat, optional

The amplitude of the wiggle perpendicular to the sourceline, in pixels. If scale isNone, or not provided, nosketch filter will be provided.

lengthfloat, optional

The length of the wiggle along the line, in pixels(default 128.0)

randomnessfloat, optional

The scale factor by which the length is shrunken orexpanded (default 16.0)

The PGF backend uses this argument as an RNG seed and not asdescribed above. Using the same seed yields the same random shape.