Skip to content

Commit

Permalink
Merge pull request #6811 from peterfpeterson/xkcd_font
Browse files Browse the repository at this point in the history
ENH: Add xkcd font as one of the options in xkcd style
  • Loading branch information
tacaswell committed Jul 23, 2016
2 parents 49347ae + 3af9530 commit 64ad40b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/matplotlib/pyplot.py
Expand Up @@ -399,7 +399,7 @@ def xkcd(scale=1, length=100, randomness=2):
from matplotlib import patheffects
context = rc_context()
try:
rcParams['font.family'] = ['Humor Sans', 'Comic Sans MS']
rcParams['font.family'] = ['xkcd', 'Humor Sans', 'Comic Sans MS']
rcParams['font.size'] = 14.0
rcParams['path.sketch'] = (scale, length, randomness)
rcParams['path.effects'] = [
Expand Down
2 changes: 1 addition & 1 deletion lib/matplotlib/rcsetup.py
Expand Up @@ -1000,7 +1000,7 @@ def validate_animation_writer_path(p):
'Sand', 'Script MT', 'Felipa', 'cursive'],
validate_stringlist],
'font.fantasy': [['Comic Sans MS', 'Chicago', 'Charcoal', 'Impact'
'Western', 'Humor Sans', 'fantasy'],
'Western', 'Humor Sans', 'fantasy', 'xkcd'],
validate_stringlist],
'font.monospace': [['DejaVu Sans Mono', 'Bitstream Vera Sans Mono',
'Computer Modern Typewriter',
Expand Down
2 changes: 1 addition & 1 deletion matplotlibrc.template
Expand Up @@ -206,7 +206,7 @@ backend : $TEMPLATE_BACKEND
#font.serif : DejaVu Serif, Bitstream Vera Serif, New Century Schoolbook, Century Schoolbook L, Utopia, ITC Bookman, Bookman, Nimbus Roman No9 L, Times New Roman, Times, Palatino, Charter, serif
#font.sans-serif : DejaVu Sans, Bitstream Vera Sans, Lucida Grande, Verdana, Geneva, Lucid, Arial, Helvetica, Avant Garde, sans-serif
#font.cursive : Apple Chancery, Textile, Zapf Chancery, Sand, Script MT, Felipa, cursive
#font.fantasy : Comic Sans MS, Chicago, Charcoal, Impact, Western, Humor Sans, fantasy
#font.fantasy : Comic Sans MS, Chicago, Charcoal, Impact, Western, Humor Sans, fantasy, xkcd
#font.monospace : DejaVu Sans Mono, Bitstream Vera Sans Mono, Andale Mono, Nimbus Mono L, Courier New, Courier, Fixed, Terminal, monospace

### TEXT
Expand Down

0 comments on commit 64ad40b

Please sign in to comment.