8000 Don't try to autoscale if no data present to autoscale to by dstansby · Pull Request #12284 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Don't try to autoscale if no data present to autoscale to #12284

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
wants to merge 1 commit into from

Conversation

dstansby
Copy link
Member

If there's no data (with finite coordinates) present, then it doesn't seem sensible to me to try and autoscale an axis. This should be a (probably minor performance boost), because autoscale seems to be called quite a few times on before anything is plotted.

@dstansby dstansby added this to the v3.1 milestone Sep 25, 2018
@dstansby
Copy link
Member Author

This breaks log scales in weird an wonderful ways, and is not the solution I needed to my problem anyway...

@dstansby dstansby closed this Sep 25, 2018
@dstansby dstansby deleted the autoscale-nodata branch September 25, 2018 22:56
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

Successfully merging this pull request may close these issues.

2 participants
0