10000 Add xkcd font as one of the options · matplotlib/matplotlib@cb11f27 · GitHub
[go: up one dir, main page]

Skip to content

Commit cb11f27

Browse files
Add xkcd font as one of the options
The official xkcd font https://github.com/ipython/xkcd-font was missing from the list of what is looked for when the user selects xkcd mode. Since it is the "official" font, it has been added to the top of the list.
1 parent 96003f9 commit cb11f27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/pyplot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ def xkcd(scale=1, length=100, randomness=2):
399399
from matplotlib import patheffects
400400
context = rc_context()
401401
try:
402-
rcParams['font.family'] = ['Humor Sans', 'Comic Sans MS']
402+
rcParams['font.family'] = ['xkcd', 'Humor Sans', 'Comic Sans MS']
403403
rcParams['font.size'] = 14.0
404404
rcParams['path.sketch'] = (scale, length, randomness)
405405
rcParams['path.effects'] = [

0 commit comments

Comments
 (0)
0