Skip to content

Commit

Permalink
DOC: add example plot to README
Browse files Browse the repository at this point in the history
  • Loading branch information
jakevdp committed May 31, 2016
1 parent f16469b commit 2cbc130
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Expand Up @@ -15,6 +15,22 @@ Altair is the [brightest star](https://en.wikipedia.org/wiki/Altair) in the cons

## Examples

Here is an example of how Altair can be used to quickly visualize a dataset:

```python
from altair import Layer, load_dataset

# data is loaded as a pandas DataFrame
cars = load_dataset('cars')

Layer(cars).encode(
x='Horsepower',
y='Miles_per_Gallon',
color='Origin',
)
```
![Altair Visualization](relative/path/to/img.jpg?raw=true "Title")

For examples of Altair's API using the native Vega-Lite renderer, see the [Notebook Examples](notebooks/Index.ipynb).

## Motivation
Expand Down
Binary file added images/cars.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 2cbc130

Please sign in to comment.