Anjum Sayed
Anjum Sayed

Reputation: 884

Autoscaling the y axis when using rangeslider in Plotly

I'm following the rangeslider example on the Plotly website: https://plot.ly/python/range-slider/

Is there a way to automatically (or even manually) rescale the y axis as the x range changes? For example, if the date range in the example above is set between Nov 2008 - April 2009, how can we automatically rescale the y axis to a more appropriate range to see the features in the data better?

Upvotes: 3

Views: 3675

Answers (2)

Album Shen
Album Shen

Reputation: 11

It's 2018, and I'm also having difficulty finding a concise solution to this, but here's a potential workaround posted on the plotly community site using a FigureWidget:

https://community.plot.ly/t/y-axis-autoscaling-with-x-range-sliders/10245/3

Upvotes: 1

Anjum Sayed
Anjum Sayed

Reputation: 884

The answer to this is no according to this answer from the devs:

Not at the moment, unfortunately.

Upvotes: 1

Related Questions