plotnine.theme_xkcd

theme_xkcd(
    base_size=12,
    scale=1,
    length=100,
    randomness=2,
    stroke_size=3,
    stroke_color="white"
)

xkcd theme

Parameters

base_size : int = 12

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

scale : float = 1

The amplitude of the wiggle perpendicular to the line (in pixels)

length : float = 100

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

randomness : float = 2

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

stroke_size : float = 3

Size of the stroke to apply to the lines and text paths.

stroke_color : str | tuple = "white"

Color of the strokes. Use "none" for no color.