Skip to content

Commit 9494dc7

Browse files
fixup
1 parent 277b9c9 commit 9494dc7

File tree

5 files changed

+11
-10
lines changed

5 files changed

+11
-10
lines changed

Diff for: doc/python/builtin-colorscales.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ It is intentionally left in for backwards-compatibility reasons.
9696
A collection of predefined diverging color scales is provided in the `plotly.colors.diverging` module.
9797
Diverging color scales are appropriate for continuous data that has a natural midpoint
9898
other otherwise informative special value, such as 0 altitude, or the boiling point
99-
of a liquid. These scales are intended to be used when [explicitly setting the midpoint of the scale](/python/colorscales/#setting-the-midpoint-of-a-diverging-colorscale).
99+
of a liquid. These scales are intended to be used when [explicitly setting the midpoint of the scale](/python/colorscales/#setting-the-midpoint-of-a-color-range-for-a-diverging-color-scale).
100100

101101
Here are all the built-in scales in the `plotly.colors.diverging` module:
102102

Diff for: doc/python/discrete-color.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ jupyter:
55
text_representation:
66
extension: .md
77
format_name: markdown
8-
format_version: "1.2"
8+
format_version: '1.2'
99
jupytext_version: 1.3.1
1010
kernelspec:
1111
display_name: Python 3
@@ -22,7 +22,8 @@ jupyter:
2222
pygments_lexer: ipython3
2323
version: 3.6.8
2424
plotly:
25-
description: How to use and configure discrete color sequences, also known as categorical or qualitative color scales.
25+
description: How to use and configure discrete color sequences, also known as
26+
categorical or qualitative color scales.
2627
display_as: file_settings
2728
has_thumbnail: true
2829
ipynb: ~notebook_demo/187
@@ -218,7 +219,7 @@ In most cases, discrete/qualitative/categorical data values have no meaningful n
218219
import plotly.express as px
219220
df = px.data.wind()
220221
fig = px.bar_polar(df, r="frequency", theta="direction", color="strength",
221-
color_discrete_sequence= px.colors.sequential.Plasma[-2::-1],
222+
color_discrete_sequence= px.colors.sequential.Plasma_r,
222223
title="Part of a continuous color scale used as a discrete sequence"
223224
)
224225
fig.show()

Diff for: doc/python/plotly-express.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -298,23 +298,23 @@ fig.show()
298298
import plotly.express as px
299299
df = px.data.wind()
300300
fig = px.scatter_polar(df, r="frequency", theta="direction", color="strength", symbol="strength",
301-
color_discrete_sequence=px.colors.sequential.Plasma[-2::-1])
301+
color_discrete_sequence=px.colors.sequential.Plasma_r)
302302
fig.show()
303303
```
304304

305305
```python
306306
import plotly.express as px
307307
df = px.data.wind()
308308
fig = px.line_polar(df, r="frequency", theta="direction", color="strength", line_close=True,
309-
color_discrete_sequence=px.colors.sequential.Plasma[-2::-1])
309+
color_discrete_sequence=px.colors.sequential.Plasma_r)
310310
fig.show()
311311
```
312312

313313
```python
314314
import plotly.express as px
315315
df = px.data.wind()
316316
fig = px.bar_polar(df, r="frequency", theta="direction", color="strength", template="plotly_dark",
317-
color_discrete_sequence= px.colors.sequential.Plasma[-2::-1])
317+
color_discrete_sequence= px.colors.sequential.Plasma_r)
318318
fig.show()
319319
```
320320

Diff for: doc/python/polar-chart.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ import plotly.express as px
5757
df = px.data.wind()
5858
fig = px.scatter_polar(df, r="frequency", theta="direction",
5959
color="strength", symbol="strength", size="frequency",
60-
color_discrete_sequence=px.colors.sequential.Plasma[-2::-1])
60+
color_discrete_sequence=px.colors.sequential.Plasma_r)
6161
fig.show()
6262
```
6363

@@ -67,7 +67,7 @@ For a line polar plot, use `px.line_polar`:
6767
import plotly.express as px
6868
df = px.data.wind()
6969
fig = px.line_polar(df, r="frequency", theta="direction", color="strength", line_close=True,
70-
color_discrete_sequence=px.colors.sequential.Plasma[-2::-1],
70+
color_discrete_sequence=px.colors.sequential.Plasma_r,
7171
template="plotly_dark",)
7272
fig.show()
7373
```

Diff for: doc/python/wind-rose-charts.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ import plotly.express as px
4646
df = px.data.wind()
4747
fig = px.bar_polar(df, r="frequency", theta="direction",
4848
color="strength", template="plotly_dark",
49-
color_discrete_sequence= px.colors.sequential.Plasma[-2::-1])
49+
color_discrete_sequence= px.colors.sequential.Plasma_r)
5050
fig.show()
5151
```
5252

0 commit comments

Comments
 (0)