Download venv/lib/python3.10/site-packages/altair/examples/bubble_plot.py from asgeorges/ll-create: direct link, hf CLI and curl.
- Browser
- Download file 296 Bytes
-
https://huggingface.co/spaces/asgeorges/ll-create/resolve/main/venv/lib/python3.10/site-packages/altair/examples/bubble_plot.py
- Command line
-
hf download hf://spaces/asgeorges/ll-create/venv/lib/python3.10/site-packages/altair/examples/bubble_plot.py
-
curl -L -o bubble_plot.py https://huggingface.co/spaces/asgeorges/ll-create/resolve/main/venv/lib/python3.10/site-packages/altair/examples/bubble_plot.py
296 Bytes
| """ | |
| Bubble Plot | |
| ----------------- | |
| This example shows how to make a bubble plot. | |
| """ | |
| # category: scatter plots | |
| import altair as alt | |
| from vega_datasets import data | |
| source = data.cars() | |
| alt.Chart(source).mark_point().encode( | |
| x='Horsepower', | |
| y='Miles_per_Gallon', | |
| size='Acceleration' | |
| ) | |