Skip to content

Commit bad179b

Browse files
committed
minor improvements
1 parent e778e0b commit bad179b

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

notebooks/box-plots.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,13 @@ fig.show()
7575

7676
#### Styled box plot
7777

78+
For the interpretation of the notches, see https://en.wikipedia.org/wiki/Box_plot#Variations.
79+
7880
```python
7981
import plotly.express as px
8082
tips = px.data.tips()
8183
fig = px.box(tips, x="time", y="total_bill", color="smoker",
82-
notched=True, # used notched shape for the box so that median is more visible
84+
notched=True, # used notched shape
8385
title="Box plot of total bill",
8486
hover_data=["day"] # add day column to hover data
8587
)
@@ -314,8 +316,8 @@ import numpy as np
314316

315317
N = 30 # Number of boxes
316318

317-
# generate an array of rainbow colors by fixing the saturation and lightness of the HSL r
318-
# epresentation of colour and marching around the hue.
319+
# generate an array of rainbow colors by fixing the saturation and lightness of the HSL
320+
# representation of colour and marching around the hue.
319321
# Plotly accepts any CSS color format, see e.g. http://www.w3schools.com/cssref/css_colors_legal.asp.
320322
c = ['hsl('+str(h)+',50%'+',50%)' for h in np.linspace(0, 360, N)]
321323

notebooks/sankey-diagram.md

+2
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ fig.update_layout(
129129
plot_bgcolor='black',
130130
paper_bgcolor='black'
131131
)
132+
133+
fig.show()
132134
```
133135

134136
### Reference

0 commit comments

Comments
 (0)