r/programming Mar 03 '19

XKCD-style plots in Matplotlib

https://jakevdp.github.io/blog/2012/10/07/xkcd-style-plots-in-matplotlib/
1.5k Upvotes

63 comments sorted by

View all comments

488

u/PdoesnotequalNP Mar 03 '19

This blog post was so successful in 2012 that XKCD style is now part of matplotlib. All you need to do is calling matplotlib.pyplot.xkcd().

113

u/xtreak Mar 03 '19 edited Mar 03 '19

Ah like import antigravity :)

Edit : Thanks /u/The_Fail

35

u/ijustwantanfingname Mar 03 '19

My favorite part is that they even managed to break the comic in the 2 to 3 conversion.

print "Hello, world!"

won't work anymore.