Turn on xkcd sketch-style drawing mode.
This will only have an effect on things drawn after this function is called.
For best results, install the xkcd script font; xkcd fonts are not packaged with Matplotlib.
The amplitude of the wiggle perpendicular to the source line.
The length of the wiggle along the line.
The scale factor by which the length is shrunken or expanded.
This function works by a number of rcParams, so it will probably override others you have set before.
If you want the effects of this function to be temporary, it can be used as a context manager, for example:
with plt.xkcd():
# This figure will be in XKCD-style
fig1 = plt.figure()
# ...
# This figure will be in regular style
fig2 = plt.figure()
matplotlib.pyplot.xkcd
© 2012–2023 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.xkcd.html