Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fa9188e

Browse files
strip charts docs
1 parent a68d715 commit fa9188e

File tree

1 file changed

+60
-0
lines changed

1 file changed

+60
-0
lines changed

doc/python/strip-charts.md

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
---
2+
jupyter:
3+
jupytext:
4+
notebook_metadata_filter: all
5+
text_representation:
6+
extension: .md
7+
format_name: markdown
8+
format_version: '1.2'
9+
jupytext_version: 1.4.2
10+
kernelspec:
11+
display_name: Python 3
12+
language: python
13+
name: python3
14+
language_info:
15+
codemirror_mode:
16+
name: ipython
17+
version: 3
18+
file_extension: .py
19+
mimetype: text/x-python
20+
name: python
21+
nbconvert_exporter: python
22+
pygments_lexer: ipython3
23+
version: 3.7.7
24+
plotly:
25+
description: Strip charts are like 1-dimensional jittered scatter plots.
26+
display_as: statistical
27+
language: python
28+
layout: base
29+
name: Strip Charts
30+
order: 14
31+
page_type: u-guide
32+
permalink: python/strip-charts/
33+
thumbnail: thumbnail/figure-labels.png
34+
---
35+
36+
### Strip Charts with Plotly Express
37+
38+
[Plotly Express](/python/plotly-express/) is the easy-to-use, high-level interface to Plotly, which [operates on a variety of types of data](/python/px-arguments/) and produces [easy-to-style figures](/python/styling-plotly-express/).
39+
40+
The `px.strip()` function will make strip charts using underlying `box` traces with the box hidden.
41+
42+
See also [box plots](/python/box-plots/) and [violin plots](/python/violin/).
43+
44+
```python
45+
import plotly.express as px
46+
47+
df = px.data.tips()
48+
fig = px.strip(df, x="total_bill", y="day")
49+
fig.show()
50+
```
51+
52+
Strip charts support [faceting](/python/facet-plots/) and [discrete color](/python/discrete-color/):
53+
54+
```python
55+
import plotly.express as px
56+
57+
df = px.data.tips()
58+
fig = px.strip(df, x="total_bill", y="time", color="sex", facet_col="day")
59+
fig.show()
60+
```

0 commit comments

Comments
 (0)