8000 Update plotly js to 2.30.0 by LiamConnors · Pull Request #4542 · plotly/plotly.py · GitHub
[go: up one dir, main page]

Skip to content

Update plotly js to 2.30.0 8000 #4542

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Mar 13, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
change to colors from color doc
  • Loading branch information
LiamConnors committed Mar 12, 2024
commit 5416f77edf935039aa45c45372aad2a38a9cdada
8 changes: 4 additions & 4 deletions doc/python/filled-area-plots.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ fig.show()

*New in 5.20*

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'`).
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'`).

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

Expand All @@ -147,17 +147,17 @@ fig = go.Figure(
y=[3, 4, 8, 3],
fill=None,
mode="lines",
line_color="indigo",
line_color="darkblue",
),
go.Scatter(
x=[1, 2, 3, 4],
y=[1, 6, 2, 6],
fill="tonexty",
mode="lines",
line_color="indigo",
line_color="darkblue",
fillgradient=dict(
type="horizontal",
colorscale=[[0.0, "#FFB3BA"], [0.5, "#FFDFBA"], [1.0, "#BAE1FF"]],
colorscale=[(0.0, "darkblue"), (0.5, "royalblue"), (1.0, "cyan")],
),
),
]
Expand Down
0