From 4b42f590c51b02ee9adcc8c011e1aef4d1a7c1b3 Mon Sep 17 00:00:00 2001 From: Pete Peterson Date: Thu, 21 Jul 2016 15:26:32 -0400 Subject: [PATCH 1/2] 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. --- lib/matplotlib/pyplot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/matplotlib/pyplot.py b/lib/matplotlib/pyplot.py index 8e787463c28d..f6c889061583 100644 --- a/lib/matplotlib/pyplot.py +++ b/lib/matplotlib/pyplot.py @@ -400,7 +400,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'] = [ From d18d652224da98683239c7a0a9d38c1226f4f873 Mon Sep 17 00:00:00 2001 From: Pete Peterson Date: Thu, 21 Jul 2016 16:18:30 -0400 Subject: [PATCH 2/2] Forcing a rebuild