From 804541be0ef4a935ddc8b63f312b53777cd5ae44 Mon Sep 17 00:00:00 2001 From: Rosario Scalise Date: Fri, 24 Apr 2020 17:51:40 -0400 Subject: [PATCH] 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! --- doc/python/animations.md | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/doc/python/animations.md b/doc/python/animations.md index ed97e36e376..49c2a726137 100644 --- a/doc/python/animations.md +++ b/doc/python/animations.md @@ -261,18 +261,6 @@ fig_dict = { fig_dict["layout"]["xaxis"] = {"range": [30, 85], "title": "Life Expectancy"} fig_dict["layout"]["yaxis"] = {"title": "GDP per Capita", "type": "log"} fig_dict["layout"]["hovermode"] = "closest" -fig_dict["layout"]["sliders"] = { - "args": [ - "transition", { - "duration": 400, - "easing": "cubic-in-out" - } - ], - "initialValue": "1952", - "plotlycommand": "animate", - "values": years, - "visible": True -} fig_dict["layout"]["updatemenus"] = [ { "buttons": [