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
inverting an axis shouldn't affect the autoscaling setting #1557
Conversation
Looks good to me. Is this easy to test? If so, would you mind adding a simple test for this? Cheers, |
Yes, I was just about to push up a commit that tests this, but then I ran into the build failure on my machine. |
@WeatherGod "The" build failure? The ones we've been seeing recently on Travis? The travis builds are succeeding now... |
No, the one I asked about on the dev mailing list a couple hours ago. |
Whew ok. That's a relief. |
As for "other places in the code that may need this update": I just did a quick grep. |
Ok, looks like I accidentally picked up a couple of the cherry-picked commits in my last rebase. Hopefully that isn't too much of an issue. I will look into spy and hist2d. |
wrt spy() and hist2d(), I have to question why they even need to explicitly set the limits. Maybe at the time, the autoscaling logic wasn't very good, but it is much more mature now. Perhaps we should update these to use autoscale_view()? |
On 2012/12/04 8:41 AM, Benjamin Root wrote:
Whatever you do, make sure spy is setting the same tight limits as at |
We can certainly still do the same setting of the limits. I just suggest that the autoscaling state should be left alone. |
@WeatherGod Is this good to go or are you going to add |
I think I will leave spy and hist2d out. We will have to ponder it some more. |
@WeatherGod Ok. Are you needing to add anything or can I merge this? |
no, go ahead and merge. |
inverting an axis shouldn't affect the autoscaling setting
invert_xaxis() and friends shouldn't blindly set the axis limits. The autoscaling state should be left unchanged. There may be other places in the codebase where this change should be made.
Closes #1553