Altair for visualization in Python

Mar 26, 2018

Vega-Lite is a grammar for interactive graphics primarily used for analysis. Altair is a visualization library in Python that is based on this grammar.

With Altair, you can spend more time understanding your data and its meaning. Altair’s API is simple, friendly and consistent and built on top of the powerful Vega-Lite visualization grammar. This elegant simplicity produces beautiful and effective visualizations with a minimal amount of code.

Jim Vallandingham just put up a useful introduction to the library if you’re looking to get your feet wet.

I do very little visualization-wise with Python since my current toolset typically covers my bases, but this has me curious.

Favorites

Pizza Place Geography

Most of the major pizza chains are within a 5-mile …

Who is Older and Younger than You

Here’s a chart to show you how long you have until you start to feel your age.

This is an American Workday, By Occupation

I simulated a day for employed Americans to see when and where they work.

How You Will Die

So far we’ve seen when you will die and how other people tend to die. Now let’s put the two together to see how and when you will die, given your sex, race, and age.