-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
autoscale context manager #5510
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
Comments
I have no objections from an API point of view. |
How can that be done in a back-compatible way? |
If the context manager takes effect in |
ah, cute! |
@anntzer: Were you offering to make a pull request? |
Perhaps in a few days. |
See matplotlib#5510. Also clarify a bit the implementation of autoscale, and fix an issue about the lack of effect of set_autoscalez_on for 3D axes, which was previously visible by running:: from pylab import * from mpl_toolkits import mplot3d gcf().add_subplot(111, projection="3d") plot([0, 1], [0, 1], [0, 1]) gca().set_autoscalex_on(False) gca().set_autoscalez_on(False) # has no effect plot([2, 3], [2, 3], [2, 3]) show()
See matplotlib#5510. Also clarify a bit the implementation of autoscale, and fix an issue about the lack of effect of set_autoscalez_on for 3D axes, which was previously visible by running:: from pylab import * from mpl_toolkits import mplot3d gcf().add_subplot(111, projection="3d") plot([0, 1], [0, 1], [0, 1]) gca().set_autoscalex_on(False) gca().set_autoscalez_on(False) # has no effect plot([2, 3], [2, 3], [2, 3]) show()
Closing due to #5538 (comment) (not realistically possible for now). |
Currently, {plt,Axes}.autoscale returns None. Any thoughts on turning it into a context manager?
The text was updated successfully, but these errors were encountered: