Live data from Hacker News

How to Generate FiveThirtyEight Graphs in Python

dataquest.io

1–10 of 56 posts

Re: How to Generate FiveThirtyEight Graphs in Python

#6
post #3
post #2

I didn't know that there was a fivethirtyeight style in matplotlib. Tres cool!

Matplotlib also allows xkcd style plots [1] if that is something you fancy :) [1] -- http://jakevdp.github.io/blog/2013/07/10/XKCD-plots-in-matpl...

The XKCD graphing is really easy to do, maybe FTE could be refined and incorporated too

Re: How to Generate FiveThirtyEight Graphs in Python

#7
post #5

Pretty cool, but I actually prefer the standard style in matplotlib.

I agree – it's interesting how one is initially drawn to, yet eventually tires of these sorts of plot styles. While Seaborn strikes a good balance, clear and simple monochrome plots never go out of fashion. This is just as much the case when building fancy interactive plots using Shiny/Plotly etc.

Re: How to Generate FiveThirtyEight Graphs in Python

#9

Just make a completely wild and inaccurate prediction loosely based on fake polling data, and then graph it. Like they did when they predicted Trump had only a 1% chance of becoming president.

In the weeks leading up to the election, they were putting Trump's odds at 1/4, and pretty roundly mocking/cautioning against others who were putting him at 1%. On mobile, so I can't check by hovering, but I don't think they ever put his chances below 1/10: https://projects.fivethirtyeight.com/2016-election-forecast/
Post reply on HN