Earlier quoted context omitted.
Interesting, @bede @v3gas I would love to hear your thoughts on my plots -- http://abhirag.in/articles/price_data_present.html Too fancy? Too plain? Kinda ok? Kinda new to matplotlib, so your feedback would help :)
The plots are pretty nice. The serif font for the axes captions and the monospaced font for the axis labels are jarring.
How to Generate FiveThirtyEight Graphs in Python
21–30 of 56 posts
Re: How to Generate FiveThirtyEight Graphs in Python
#22Re: How to Generate FiveThirtyEight Graphs in Python
#23Why go through all this trouble? You can accomplish the same plot in less than 10 lines of code in R, which includes a 538 theme.
Also, it took 17 lines of code to generate the graph in the tutorial, among which 6 lines were to add labels (excluding from the total the lines of code for reading in the data or importing modules). The teaching approach makes it look that long.
You could also write some functions if you coded this kind of graphs regularly, and make the whole process a breeze.
Re: How to Generate FiveThirtyEight Graphs in Python
#24Re: How to Generate FiveThirtyEight Graphs in Python
#25Why go through all this trouble? You can accomplish the same plot in less than 10 lines of code in R, which includes a 538 theme.
Re: How to Generate FiveThirtyEight Graphs in Python
#26Why go through all this trouble? You can accomplish the same plot in less than 10 lines of code in R, which includes a 538 theme.
Re: How to Generate FiveThirtyEight Graphs in Python
#27Would be more interesting if someone could actuslly replicate the Irma one. But I figure it probably is a plotting around the datapoint (similar idea like a best fit line, but as a curve).
So my tl;dr for generating any interesting graph is a lot of coding... a lot of playing with attributes and modeling.
Re: How to Generate FiveThirtyEight Graphs in Python
#28Pretty cool, but I actually prefer the standard style in matplotlib.
It really depends on why you're generating the graphs for. If you needed a visualization for a storytelling article, I really doubt you'd prefer matplotlib's bland standard style. If you just want to visualize some data fast for yourself, then, yeah, the standard style is really great - it's readable and saves you time.
To be fair, MBSS got much better in the recent version 2.x
Before (version 1.x), I always had to use seaborn and/or modify parameters, but now the default style is good enough for most of my use cases.
Re: How to Generate FiveThirtyEight Graphs in Python
#29Why go through all this trouble? You can accomplish the same plot in less than 10 lines of code in R, which includes a 538 theme.
Re: How to Generate FiveThirtyEight Graphs in Python
#30Or learn JavaScript and just use D3. It does this out of the box given the dataset.