How to Generate FiveThirtyEight Graphs in Python


85 bookmarks. First posted by stcwiki 11 weeks ago.


A really nice case study showing how to drive matplotlib to produce a publication-quality journalistic graph. I appreciated the step-by-step approach and level of detail, and that we get a tour of most of the major concepts in matplotlib. And it's also funny how tutorials highlight the extent to which our plotting libraries are, still, really pretty terrible — using manual whitespace padding in the tick labels to get decimal or percentage sign alignment, poor or non-existent systems for sizing elements that are both data and canvas-aware, and generally poor comparability and usability.
visualization 
28 days ago by DGrady
Using Python’s matplotlib and pandas, we’ll see that it’s rather easy to replicate the core parts of any FiveThirtyEight (FTE) visualization.
Python  visualization  FiveThirtyEight  FTE  matplotlib  pandas  graphs  tutorial  blog 
5 weeks ago by areich
To avoid digressing from our main task in this tutorial, let’s just pretend we’ve already written most of an article about the evolution of gender disparity in US education. To minimize the time spent with generating the graph, it’s important to avoid beginning adding the title, the subtitle, or any other text snippet. As you can deduce from the code below, this parameter can take in a list of mixed data types, and doesn’t require any fixed number of labels to be passed in. It’s also worth mentioning that we tweaked the positioning of the signature bar in such a way that we added some visually refreshing lateral margins (we discussed this adjustment earlier). Explore matplotlib’s gallery to search for potential elements to enrich your FTE graphs (like inserting images, or adding arrows etc.).
5 weeks ago by sechilds
Impressed by the graphs on popular site FiveThirtyEight? This quick tutorial gets you started making your own eye-catching visualizations.
python  visualization  data  analytics  graphs  matplotlib  via:popular  pandas  datascience  IFTTT  FiveThirtyEight 
7 weeks ago by tranqy
If you read data science articles, you may have already stumbled upon FiveThirtyEight’s content. Naturally, you were impressed by their awesome visualizations. You wanted to make your own awesome visualizations and so asked Quora and Reddit how to do it.
Archive  python 
7 weeks ago by chrisweiss
Matplotlib styling
python  visualization  tutorial 
9 weeks ago by h-j-hilden
Nice tutorial for creating better looking graphs.
analytics  data  python  tappit 
9 weeks ago by traggett
If you read data science articles, you may have already stumbled upon FiveThirtyEight’s content. Naturally, you were impressed by their awesome visualizations. You wanted to make your own awesome visualizations and so asked Quora and Reddit how to do it. You received some answers, but they were rather vague. You still can’t get the graphs done yourself. In this post, we’ll help you. Using Python’s matplotlib and pandas, we’ll see that it’s rather easy to replicate the core parts of any FiveThirtyEight (FTE) visualization.
Python  Data  Math  Stats  CompSci  Programming 
10 weeks ago by mfernando
Alexandru Olteanu:
<p>If you read data science articles, you may have already stumbled upon FiveThirtyEight’s content. Naturally, you were impressed by their awesome visualizations. You wanted to make your own awesome visualizations and so asked Quora and Reddit how to do it. You received some answers, but they were rather vague. You still can’t get the graphs done yourself.

In this post, we’ll help you. Using Python’s matplotlib and pandas, we’ll see that it’s rather easy to replicate the core parts of any FiveThirtyEight (FTE) visualization.

We’ll start here:
<img src="https://www.dataquest.io/blog/images/alex-538/default_graph.png" width="100%" />

And, at the end of the tutorial, arrive here:
<img src="https://www.dataquest.io/blog/images/alex-538/final3.png" width="100%" />

To follow along, you’ll need at least some basic knowledge of Python. If you know what’s the difference between methods and attributes, then you’re good to go.</p>


If you're into Python and graphs, this is what you want.
data  graphs  python  analytics 
10 weeks ago by charlesarthur
Impressed by the graphs on popular site FiveThirtyEight? This quick tutorial gets you started making your own eye-catching visualizations.
python  data  graphs  visualization 
10 weeks ago by eddy
If you read data science articles, you may have already stumbled upon FiveThirtyEight’s content. Naturally, you were impressed by their awesome visualizations .…
from instapaper
10 weeks ago by rdr
matplotlib has a 'fivethirtyeight' style!

import matplotlib.style as style
style.use('fivethirtyeight')
visualization  matplotlib 
10 weeks ago by davewsmith
Impressed by the graphs on popular site FiveThirtyEight? This quick tutorial gets you started making your own eye-catching visualizations.
10 weeks ago by drcjar
Impressed by the graphs on popular site FiveThirtyEight? This quick tutorial gets you started making your own eye-catching visualizations.
analytics  python  visualization  graphs  stats 
10 weeks ago by peletiah
How to Generate FiveThirtyEight Graphs in Python
ifttt  feedbin 
10 weeks ago by nuntz
How to Generate FiveThirtyEight Graphs in Python by via Hacker News http://ift.tt/2wKHnrk
IFTTT  NewsBlur 
10 weeks ago by david3smith
You might have already observed that there’s a built-in style called fivethirtyeight. Let’s use this style, and see where that leads. For that, we’ll use the aptly named use() function from the same matplotlib.style module (which we imported under the name style). Then we’ll generate our graph using the same code as earlier.
visualization  analytics  blog  Python 
10 weeks ago by janpeuker
How to Generate FiveThirtyEight Graphs in Python
from twitter_favs
10 weeks ago by martinjc
In this post, we’ll help you. Using Python’s matplotlib and pandas, we’ll see that it’s rather easy to replicate the core parts of any FiveThirtyEight (FTE) visualization.
analytics  data  python  visualization 
10 weeks ago by Tafkas
If you read data science articles, you may have already stumbled upon FiveThirtyEight’s content. Naturally, you were impressed by their awesome visualizations. You wanted to make your own awesome visualizations and so asked Quora and Reddit how to do it. You received some answers, but they were rather vague. You still can’t get the graphs done yourself.

In this post, we’ll help you. Using Python’s matplotlib and pandas, we’ll see that it’s rather easy to replicate the core parts of any FiveThirtyEight (FTE) visualization.
article  data  python  visualization  tutorial 
10 weeks ago by bouvin