Plotly: How do the buttons for the update menus really work?

后端 未结 1 560
孤城傲影
孤城傲影 2021-01-16 05:35

Why do I want to know?

This may seem like a very simple question, but I\'m having some difficulties editing figures with multiple traces using dropdo

相关标签:
1条回答
  • 2021-01-16 06:12

    Great question! How things really work is that with the method attribute you're specifying the name of the underlying plotly.js Javascript function you want to apply, and its arguments are drawn from args. So you're really calling the JS function Plotly.restyle(<fig>, {'y': <whatever>}). This means that the documentation you're seeking is here: https://plot.ly/javascript/plotlyjs-function-reference/ and more specifically the restyle function which is here https://plot.ly/javascript/plotlyjs-function-reference/#plotlyrestyle

    As you can see it says:

    Note, leaving the trace indices unspecified assumes that you want to restyle all the traces.

    0 讨论(0)
提交回复
热议问题