jupyter | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Plotly Express is the easy-to-use, high-level interface to Plotly, which operates on a variety of types of data and produces easy-to-style figures.
The px.strip()
function will make strip charts using underlying box
traces with the box hidden.
See also box plots and violin plots.
import plotly.express as px
df = px.data.tips()
fig = px.strip(df, x="total_bill", y="day")
fig.show()
Strip charts support faceting and discrete color:
import plotly.express as px
df = px.data.tips()
fig = px.strip(df, x="total_bill", y="time", color="sex", facet_col="day")
fig.show()
See function reference for px.strip()
for more information and chart attribute options!