✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
⚾️ It's finally Baseball season! Root for the home team... & Register for our Sports Analytics Webinar!

Is there an axis lower and/or upper bound available?

Hi there,

I am extremely new to plotly and was wondering if there are features like “bounds” on y-axis let’s say, for example , I want that only y-values greater than certain number is plotted and anything below ignored but without compromising the auto-scale feature.

Suppose I have a data set (CSV file) that contains the y-values 0, 0.1, -1, 1.5, 5.0, -1, 0.1… etc, when I plot I must see empty space instead of anything below 0.1… similarly an upper limit (let’s say 10) will also be useful. Something like:

var layout = {
yaxis: {

  limits: [lower_limit, upper_limit]
}

}

So that anything falling within those limits will be plotted and auto-scaled. Is there anything like that? Limits? Bounds?

Not yet.

You can subscribe to https://github.com/plotly/plotly.js/issues/1876 for the most up-to-date development info.

Thanks! Eagerly waiting for that feature…

1 Like