Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbad179b

Browse files
committed
minor improvements
1 parente778e0b commitbad179b

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

‎notebooks/box-plots.md

Lines changed: 5 additions & 3 deletions
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, seehttps://en.wikipedia.org/wiki/Box_plot#Variations.
79+
7880
```python
7981
import plotly.expressas 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 hin np.linspace(0,360, N)]
321323

‎notebooks/sankey-diagram.md

Lines changed: 2 additions & 0 deletions
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)

[8]ページ先頭

©2009-2025 Movatter.jp