MCPcopy Index your code
hub / github.com/plotly/plotly.py / frame_args

Function frame_args

plotly/express/_core.py:853–859  ·  view source on GitHub ↗
(duration)

Source from the content-addressed store, hash-verified

851
852def configure_animation_controls(args, constructor, fig):
853 def frame_args(duration):
854 return {
855 "frame": {"duration": duration, "redraw": constructor != go.Scatter},
856 "mode": "immediate",
857 "fromcurrent": True,
858 "transition": {"duration": duration, "easing": "linear"},
859 }
860
861 if "animation_frame" in args and args["animation_frame"] and len(fig.frames) > 1:
862 fig.layout.updatemenus = [

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected