Skip to content

[Feature Request] Allow to determine automatically ranges when axis min or max is manually set. #3634

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ievgennaida opened this issue Mar 15, 2022 · 3 comments

Comments

@ievgennaida
Copy link

ievgennaida commented Mar 15, 2022

Range for the x/y axis can be defined by the property 'range'.

fig.update_yaxes(range=[min, max])

I would like to pass only max or min and other value should be determined automatically.
Ex:
range = [None, 100]
or
range = [10, None]

Use case:
Users can specify min or max by setting; ne value. It's fine when another is just calculated.
Current behaviour:
Range is ignored when one of the numbers is None or NaN

@ievgennaida ievgennaida changed the title [Features] Allow to determine automatically ranges when min or max is set. [Feature] Allow to determine automatically ranges when axis min or max is manually set. Mar 20, 2022
@ievgennaida ievgennaida changed the title [Feature] Allow to determine automatically ranges when axis min or max is manually set. [Feature Request] Allow to determine automatically ranges when axis min or max is manually set. Mar 20, 2022
@johnnybarrels
Copy link

+1 for this, would be immensely useful!

@gvwilson
Copy link
Contributor

gvwilson commented Jul 4, 2024

Hi - we are trying to tidy up the stale issues and PRs in Plotly's public repositories so that we can focus on things that are still important to our community. Since this one has been sitting for several years, I'm going to close it; if it is still a concern, please add a comment letting us know what recent version of our software you've checked it with so that I can reopen it and add it to our backlog. Thanks for your help - @gvwilson

@gvwilson gvwilson closed this as completed Jul 4, 2024
@tjnd89
Copy link

tjnd89 commented Jul 8, 2024

@gvwilson This looks like it was added in version 5.17 as part of the autorangeoptions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants