Live data from Hacker News

TIL you could make xkcd-like plots with matplotlib

matplotlib.org

1–10 of 18 posts

Re: TIL you could make xkcd-like plots with matplotlib

#5
Related:

Xkcd-Style Plots in Matplotlib https://jakevdp.github.io/blog/2012/10/07/xkcd-style-plots-i... (discussion: https://news.ycombinator.com/item?id=19293129)

XKCD Plots in Matplotlib: Going the Whole Way https://jakevdp.github.io/blog/2013/07/10/XKCD-plots-in-matp... (https://news.ycombinator.com/item?id=11642344)

Re: TIL you could make xkcd-like plots with matplotlib

#7
Fun plot style, but the "noise" is too regular to really look right. Seems like like it basically just superimposes a sine wave onto all the straight lines.

Compare the axes of the plots, or the vertical lines on the bar chart which have a pretty distinct periodicity, to the original: https://xkcd.com/373/

Re: TIL you could make xkcd-like plots with matplotlib

#8
Shameless plug but this is exactly how I put together the graphs in my blog post[0]. It's very easy to use and surprisingly versatile although I did add a bit of photoshopping to get things exactly as I wanted them.

[0] https://summer.ai/blog ChatGPT should be your first cofounder

Re: TIL you could make xkcd-like plots with matplotlib

#9

Fun plot style, but the "noise" is too regular to really look right. Seems like like it basically just superimposes a sine wave onto all the straight lines. Compare the axes of the plots, or the vertical lines on the bar chart which have a pretty distinct periodicity, to the original: https://xkcd.com/373/

Yes that's my take. I think its good enough for most use cases but if you really wanted that random effect you might consider replacing the lines using something like an ipad and pencil or stylus.
Post reply on HN