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

Appearance settings

Commit bf7426c

Browse filesBrowse files
better wrapping
1 parent 1f9a756 commit bf7426c
Copy full SHA for bf7426c

File tree

Expand file treeCollapse file tree

1 file changed

+8
-5
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+8
-5
lines changed

‎doc/python/builtin-colorscales.md

Copy file name to clipboardExpand all lines: doc/python/builtin-colorscales.md
+8-5Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ jupyter:
55
text_representation:
66
extension: .md
77
format_name: markdown
8-
format_version: "1.2"
9-
jupytext_version: 1.3.0
8+
format_version: '1.2'
9+
jupytext_version: 1.3.1
1010
kernelspec:
1111
display_name: Python 3
1212
language: python
@@ -20,9 +20,10 @@ jupyter:
2020
name: python
2121
nbconvert_exporter: python
2222
pygments_lexer: ipython3
23-
version: 3.7.3
23+
version: 3.6.8
2424
plotly:
25-
description: A reference for the built-in named continuous (sequential, diverging and cylclical) colorscales in Plotly.
25+
description: A reference for the built-in named continuous (sequential, diverging
26+
and cylclical) colorscales in Plotly.
2627
display_as: file_settings
2728
has_thumbnail: true
2829
ipynb: ~notebook_demo/187
@@ -55,8 +56,10 @@ These strings are case-insensitive and you can append `_r` to them to reverse th
5556

5657
```python
5758
import plotly.express as px
59+
from textwrap import wrap
5860

59-
print("".join('{:<12}'.format(c) for c in px.colors.named_colorscales()))
61+
named_colorscales = px.colors.named_colorscales()
62+
print("\n".join(wrap("".join('{:<12}'.format(c) for c in named_colorscales), 96)))
6063
```
6164

6265
### Built-In Sequential Colorscales

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.