Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 64ad40b

Browse filesBrowse files
authored
Merge pull request #6811 from peterfpeterson/xkcd_font
ENH: Add xkcd font as one of the options in xkcd style
2 parents 49347ae + 3af9530 commit 64ad40b
Copy full SHA for 64ad40b

File tree

Expand file treeCollapse file tree

3 files changed

+3
-3
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+3
-3
lines changed

‎lib/matplotlib/pyplot.py

Copy file name to clipboardExpand all lines: lib/matplotlib/pyplot.py
+1-1Lines 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'] = [

‎lib/matplotlib/rcsetup.py

Copy file name to clipboardExpand all lines: lib/matplotlib/rcsetup.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1000,7 +1000,7 @@ def validate_animation_writer_path(p):
10001000
'Sand', 'Script MT', 'Felipa', 'cursive'],
10011001
validate_stringlist],
10021002
'font.fantasy': [['Comic Sans MS', 'Chicago', 'Charcoal', 'Impact'
1003-
'Western', 'Humor Sans', 'fantasy'],
1003+
'Western', 'Humor Sans', 'fantasy', 'xkcd'],
10041004
validate_stringlist],
10051005
'font.monospace': [['DejaVu Sans Mono', 'Bitstream Vera Sans Mono',
10061006
'Computer Modern Typewriter',

‎matplotlibrc.template

Copy file name to clipboardExpand all lines: matplotlibrc.template
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ backend : $TEMPLATE_BACKEND
206206
#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
207207
#font.sans-serif : DejaVu Sans, Bitstream Vera Sans, Lucida Grande, Verdana, Geneva, Lucid, Arial, Helvetica, Avant Garde, sans-serif
208208
#font.cursive : Apple Chancery, Textile, Zapf Chancery, Sand, Script MT, Felipa, cursive
209-
#font.fantasy : Comic Sans MS, Chicago, Charcoal, Impact, Western, Humor Sans, fantasy
209+
#font.fantasy : Comic Sans MS, Chicago, Charcoal, Impact, Western, Humor Sans, fantasy, xkcd
210210
#font.monospace : DejaVu Sans Mono, Bitstream Vera Sans Mono, Andale Mono, Nimbus Mono L, Courier New, Courier, Fixed, Terminal, monospace
211211

212212
### TEXT

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.