Arguments for update_layout methods

Hi all,

I am trying to find documentation for all of the arguments available to the methods for sliders within update_layout. Using the following help code:

help(plotly.graph_objects.layout.slider.Step.args)

shows that this property โ€œSets the arguments values to be passed to the Plotly method set in method on slide.โ€

Investigating the methods available to the slider provides the following information:
help(plotly.graph_objects.layout.slider.Step.method)

Help on property:

Sets the Plotly method to be called when the slider value is
changed. If the `skip` method is used, the API slider will
function as normal but will perform no API calls and will not
bind automatically to state updates. This may be used to create
a component interface and attach to slider events manually via
JavaScript.

The 'method' property is an enumeration that may be specified as:
  - One of the following enumeration values:
        ['restyle', 'relayout', 'animate', 'update', 'skip']

Returns
-------
Any

I canโ€™t figure out how to get deeper than this. Iโ€™ve tried looking in the source code myself, but Iโ€™m a little out of my depth. I can see that these methods are linked to Javascript functions, so maybe if someone could help me find the source code of these functions, I can find the solution.

Thanks,
J

@jakefijux

Because lately more and more questions on args definition were asked here on forum I created a few examples for each method:

relayout: https://plotly.com/~empet/15608
restyle: https://plotly.com/~empet/15607
update : https://plotly.com/~empet/15605

Hope they help!!!

2 Likes

Hi @empet The links are not workingโ€ฆ They are now.