team-10/venv/Lib/site-packages/altair/examples/strip_plot.py

16 lines
274 B
Python
Raw Normal View History

2025-08-02 02:00:33 +02:00
"""
Simple Strip Plot
-----------------
A simple example of how to make a strip plot.
"""
# category: simple charts
import altair as alt
from vega_datasets import data
source = data.cars()
alt.Chart(source).mark_tick().encode(
x='Horsepower:Q',
y='Cylinders:O'
)