Skip to content

Commit 5416f77

Browse files
committed
change to colors from color doc
1 parent d684d7a commit 5416f77

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: doc/python/filled-area-plots.md

+4-4
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)