✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
⚡️ Concerned about the grid? Kyle Baranko teaches how to predicting peak loads using XGBoost. Register for the August webinar!

Plotly Dropdowns change yaxis range

Hi,

I was wondering if there is a way to change the range of the yaxis when using the update method for dropdowns. I believe I should be passing it into the args for the dictionary but the following (and a few variations) don’t seem to work. The right trace is displayed and the title of the figure changes but the yaxis range is not being modified.

args=[
{‘visible’: [True, False, False]},
{‘title’: f’{title_string} {clean_name}’},
{‘yaxis’: dict(range=[-1., 1])}
]

Thanks in advance for any help!
Darren