Skip to content

Latest commit

 

History

History
64 lines (53 loc) · 1.75 KB

strip-charts.md

File metadata and controls

64 lines (53 loc) · 1.75 KB
jupyter
jupytext kernelspec language_info plotly
notebook_metadata_filter text_representation
all
extension format_name format_version jupytext_version
.md
markdown
1.2
1.4.2
display_name language name
Python 3
python
python3
codemirror_mode file_extension mimetype name nbconvert_exporter pygments_lexer version
name version
ipython
3
.py
text/x-python
python
python
ipython3
3.7.7
description display_as language layout name order page_type permalink thumbnail
Strip charts are like 1-dimensional jittered scatter plots.
statistical
python
base
Strip Charts
14
u-guide
python/strip-charts/
thumbnail/figure-labels.png

Strip Charts with Plotly Express

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()

Reference

See function reference for px.strip() for more information and chart attribute options!