Open
Description
import plotly.graph_objects as go
fig = go.Figure(
data=[go.Scattergl(x=[0, 1], y=[0, 1])],
layout=go.Layout(
xaxis=dict(range=[0, 5], autorange=False),
yaxis=dict(range=[0, 5], autorange=False),
title="Start Title",
updatemenus=[dict(
type="buttons",
buttons=[dict(label="Play",
method="animate",
args=[None])])]
),
frames=[go.Frame(data=[go.Scattergl(x=[1, 2], y=[1, 2])]),
go.Frame(data=[go.Scattergl(x=[1, 4], y=[1, 4])]),
go.Frame(data=[go.Scattergl(x=[3, 4], y=[3, 4])],
layout=go.Layout(title_text="End Title"))]
)
fig.update_layout(showlegend=False)
fig.show()
the visualization is shown as below:
(https://github.com/plotly/plotly.py/assets/55653936/29679f73-06e7-43dd-80ae-1c7d7636f29d)
When I execute the above code, only the first frame line segment has normal color, and the other frame line segments have no color.