Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get XKCD font on matplotlib

I've managed to replicate the graphs in:

http://matplotlib.org/xkcd/examples/showcase/xkcd.html

However my font does not look like that. How do I change the text font to the cool xkcd font?

like image 748
eran Avatar asked Oct 01 '14 17:10

eran


1 Answers

Quoting from the output of >>> help(plot.xkcd):

For best results, the "Humor Sans" font should be installed: it is
not included with matplotlib.
like image 142
Robᵩ Avatar answered Oct 10 '22 12:10

Robᵩ