Live data from Hacker News

TIL you could make xkcd-like plots with matplotlib

matplotlib.org

11–18 of 18 posts

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

#13

While I'm not a fan of the plot style, I use the xkcd colors from matplotlib.colors.XKCD_COLORS all the time. 954 colors named from the xkcd color survey [0]. [0] https://xkcd.com/color/rgb/

Do we really need "baby poop green" and "baby shit green" though?

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

#14
I've used this for documenting concepts where I don't want people getting bogged down in trying to glean precise relationships from the plots, just general ideas. People have also commented that it made some deeply technical documentation more approachable because it felt less formal.

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

#15
post #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 )

Also, this: https://mathematica.stackexchange.com/questions/11350/xkcd-s...

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

#16
post #13

While I'm not a fan of the plot style, I use the xkcd colors from matplotlib.colors.XKCD_COLORS all the time. 954 colors named from the xkcd color survey [0]. [0] https://xkcd.com/color/rgb/

Do we really need "baby poop green" and "baby shit green" though?

Yes

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

#17

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/

> but the "noise" is too regular to really look right

They probably did add the randomness (haven't checked nor confirmed), but it could be the higher resolution that makes it look really clear.

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

#18

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/

Yeah more wavy than scribbly
Post reply on HN