-
-
Notifications
You must be signed in to change notification settings - Fork 402
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
If plot ranges cannot be determined use mpl autoscale view #578
Conversation
if valid_lim(t): | ||
axis.set_ylim(top=t) | ||
yset = True | ||
axis.autoscale_view(scalex=not xset, scaley=not yset) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like a reasonable change although why not invert the booleans and use the same names as matplotlib scalex
and scaley
? That would seem clearer to me...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed.
Apparently some |
This ensures that the xlim and ylim on a plot correspond to the actual data limits at all times, allowing calculations based on these values to be performed
da8a183
to
96a886c
Compare
Ready to merge. |
Not sure why the reference data is complaining but this is still ready to merge. |
With the pr build passing, I'll merge it now. |
This ensures that the xlim and ylim on a plot correspond to the actual data limits at all times, allowing calculations based on these values to be performed.