{"id":56,"date":"2013-09-10T15:46:24","date_gmt":"2013-09-10T15:46:24","guid":{"rendered":"http:\/\/www.clowersresearch.com\/main\/?p=56"},"modified":"2014-10-23T19:42:31","modified_gmt":"2014-10-23T19:42:31","slug":"xkcd-style-plots-in-matplotlib","status":"publish","type":"post","link":"http:\/\/www.clowersresearch.com\/main\/xkcd-style-plots-in-matplotlib\/","title":{"rendered":"XKCD-style Plots in Matplotlib"},"content":{"rendered":"<p>Now incorporated directly into the latest version of matplotlib (v1.3) here is a great alternative that brings some style to your plotting routines. I haven&#8217;t tried it out on plots with a huge number of points but I imagine it should work just fine. \u00a0Below are some simple examples. \u00a0Simple as matplotlib.pyplot.xkcd()&#8230;<\/p>\n<p>Pseudo-Random Sequence with XKCD:<\/p>\n<p><a href=\"http:\/\/www.clowersresearch.com\/main\/wp-content\/uploads\/2013\/09\/PRS_XKCD.png\"><img loading=\"lazy\" class=\"alignnone size-medium wp-image-57\" alt=\"PRS_XKCD\" src=\"http:\/\/www.clowersresearch.com\/main\/wp-content\/uploads\/2013\/09\/PRS_XKCD-300x225.png\" width=\"300\" height=\"225\" srcset=\"http:\/\/www.clowersresearch.com\/main\/wp-content\/uploads\/2013\/09\/PRS_XKCD-300x225.png 300w, http:\/\/www.clowersresearch.com\/main\/wp-content\/uploads\/2013\/09\/PRS_XKCD-150x112.png 150w, http:\/\/www.clowersresearch.com\/main\/wp-content\/uploads\/2013\/09\/PRS_XKCD.png 800w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>No XKCD:<\/p>\n<p><a href=\"http:\/\/www.clowersresearch.com\/main\/wp-content\/uploads\/2013\/09\/PRS_noXKCD2.png\"><img loading=\"lazy\" class=\"alignnone size-medium wp-image-61\" alt=\"PRS_noXKCD\" src=\"http:\/\/www.clowersresearch.com\/main\/wp-content\/uploads\/2013\/09\/PRS_noXKCD2-300x225.png\" width=\"300\" height=\"225\" srcset=\"http:\/\/www.clowersresearch.com\/main\/wp-content\/uploads\/2013\/09\/PRS_noXKCD2-300x225.png 300w, http:\/\/www.clowersresearch.com\/main\/wp-content\/uploads\/2013\/09\/PRS_noXKCD2-150x112.png 150w, http:\/\/www.clowersresearch.com\/main\/wp-content\/uploads\/2013\/09\/PRS_noXKCD2.png 800w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Cheers Jake Vanderplas: \u00a0<a href=\"http:\/\/jakevdp.github.com\/blog\/2012\/10\/07\/xkcd-style-plots-in-matplotlib\/\" target=\"_blank\">http:\/\/jakevdp.github.com\/blog\/2012\/10\/07\/xkcd-style-plots-in-matplotlib\/<\/a><\/p>\n<p>More Examples: \u00a0<a href=\"http:\/\/matplotlib.org\/xkcd\/examples\/showcase\/xkcd.html\">http:\/\/matplotlib.org\/xkcd\/examples\/showcase\/xkcd.html<\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Now incorporated directly into the latest version of matplotlib (v1.3) here is a great alternative that brings some style to your plotting routines. I haven&#8217;t tried it out on plots with a huge number of points but I imagine it should work just fine. \u00a0Below are some simple examples. \u00a0Simple as matplotlib.pyplot.xkcd()&#8230; Pseudo-Random Sequence with [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":57,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":""},"categories":[6],"tags":[5,4,20],"jetpack_featured_media_url":"http:\/\/www.clowersresearch.com\/main\/wp-content\/uploads\/2013\/09\/PRS_XKCD.png","_links":{"self":[{"href":"http:\/\/www.clowersresearch.com\/main\/wp-json\/wp\/v2\/posts\/56"}],"collection":[{"href":"http:\/\/www.clowersresearch.com\/main\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.clowersresearch.com\/main\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.clowersresearch.com\/main\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.clowersresearch.com\/main\/wp-json\/wp\/v2\/comments?post=56"}],"version-history":[{"count":2,"href":"http:\/\/www.clowersresearch.com\/main\/wp-json\/wp\/v2\/posts\/56\/revisions"}],"predecessor-version":[{"id":62,"href":"http:\/\/www.clowersresearch.com\/main\/wp-json\/wp\/v2\/posts\/56\/revisions\/62"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.clowersresearch.com\/main\/wp-json\/wp\/v2\/media\/57"}],"wp:attachment":[{"href":"http:\/\/www.clowersresearch.com\/main\/wp-json\/wp\/v2\/media?parent=56"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.clowersresearch.com\/main\/wp-json\/wp\/v2\/categories?post=56"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.clowersresearch.com\/main\/wp-json\/wp\/v2\/tags?post=56"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}