8000 Add font to pyplot.xkcd() · matplotlib/matplotlib@069a056 · GitHub
[go: up one dir, main page]

Skip to content

Commit 069a056

Browse files
authored
Add font to pyplot.xkcd()
Pyplot doesn't recognise xkcd Script from https://github.com/ipython/xkcd-font since the font family is 'xkcd Script' and not just 'xkcd'. Added font to list of xkcd fonts.
1 parent 2ddb238 commit 069a056

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
@@ -383,7 +383,7 @@ def xkcd(scale=1, length=100, randomness=2):
383383

384384
from matplotlib import patheffects
385385
return rc_context({
386-
'font.family': ['xkcd', 'Humor Sans', 'Comic Sans MS'],
386+
'font.family': ['xkcd', 'xkcd Script', 'Humor Sans', 'Comic Sans MS'],
387387
'font.size': 14.0,
388388
'path.sketch': (scale, length, randomness),
389389
'path.effects': [patheffects.withStroke(linewidth=4, foreground="w")],

0 commit comments

Comments
 (0)
0