plotnine.themes.theme_xkcd

class plotnine.themes.theme_xkcd(base_size=12, scale=1, length=100, randomness=2, stroke_size=4, stroke_color='white')[source]

xkcd theme

Parameters:
base_sizeint, optional

Base font size. All text sizes are a scaled versions of the base font size. Default is 12.

scalefloat, optional

The amplitude of the wiggle perpendicular to the line (in pixels). Default is 1.

lengthfloat, optional

The length of the wiggle along the line (in pixels). Default is 100.

randomnessfloat, optional

The factor by which the length is randomly scaled. Default is 2.

stroke_sizefloat, optional

Size of the stroke to apply to the lines and text paths. Default is 4.

stroke_colorstr or tuple, optional

Color of the strokes. Default is white. For no color, use 'none'.