Skip to content

Commit 804541b

Browse files
authored
Update animations.md
In the 'gapminder' example, the current code snippets appear to assign a list to `fig_dict["layout"]["sliders"]` twice. Once when the figure layout is initially created, and then again when more information is added to `sliders_dict`. This dictionary entry is overwritten before the figure is constructed. My proposed change just removes the initial assignment which seems to be of no consequence. Striving for clarity!
1 parent 3e01d57 commit 804541b

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

doc/python/animations.md

-12
Original file line numberDiff line numberDiff line change
@@ -261,18 +261,6 @@ fig_dict = {
261261
fig_dict["layout"]["xaxis"] = {"range": [30, 85], "title": "Life Expectancy"}
262262
fig_dict["layout"]["yaxis"] = {"title": "GDP per Capita", "type": "log"}
263263
fig_dict["layout"]["hovermode"] = "closest"
264-
fig_dict["layout"]["sliders"] = {
265-
"args": [
266-
"transition", {
267-
"duration": 400,
268-
"easing": "cubic-in-out"
269-
}
270-
],
271-
"initialValue": "1952",
272-
"plotlycommand": "animate",
273-
"values": years,
274-
"visible": True
275-
}
276264
fig_dict["layout"]["updatemenus"] = [
277265
{
278266
"buttons": [

0 commit comments

Comments
 (0)