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 5416f77

Browse filesBrowse files
committed
change to colors from color doc
1 parent d684d7a commit 5416f77
Copy full SHA for 5416f77

File tree

Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed

‎doc/python/filled-area-plots.md

Copy file name to clipboardExpand all lines: doc/python/filled-area-plots.md
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ fig.show()
133133

134134
*New in 5.20*
135135

136-
Scatter traces with a fill, support a `fillgradient`, which is a `dict` of options that define the gradient. Use `fillgradient.colorscale` to define the colorscale for the gradient and choose a `type` to define the orientation of the gradient (`'horizontal'`, `'vertical'` or `'radial'`).
136+
Scatter traces with a fill, support a `fillgradient`, which is a `dict` of options that define the gradient. Use `fillgradient.colorscale` to define the [colorscale](https://plotly.com/python/colorscales) for the gradient and choose a `type` to define the orientation of the gradient (`'horizontal'`, `'vertical'` or `'radial'`).
137137

138138
In the following example, we've defined a `horizontal` `fillgradient` with a colorscale of three colors.
139139

@@ -147,17 +147,17 @@ fig = go.Figure(
147147
y=[3, 4, 8, 3],
148148
fill=None,
149149
mode="lines",
150-
line_color="indigo",
150+
line_color="darkblue",
151151
),
152152
go.Scatter(
153153
x=[1, 2, 3, 4],
154154
y=[1, 6, 2, 6],
155155
fill="tonexty",
156156
mode="lines",
157-
line_color="indigo",
157+
line_color="darkblue",
158158
fillgradient=dict(
159159
type="horizontal",
160-
colorscale=[[0.0, "#FFB3BA"], [0.5, "#FFDFBA"], [1.0, "#BAE1FF"]],
160+
colorscale=[(0.0, "darkblue"), (0.5, "royalblue"), (1.0, "cyan")],
161161
),
162162
),
163163
]

0 commit comments

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