-
-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Wrong datalims with empty plots with shared axes #3118
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
This is present in 1.3.1, but fixed in master; 1.4 release is coming soon. |
When did this get fixed? This is a duplicate of another issue that I punted to 1.4.x a few days ago (#2492). |
Good question; I don't know. But with this and with #2492, I can reproduce the problem with Anaconda, mpl 1.3.1, and not with mpl master on my Linux VM. There were a couple relevant-looking changes to transforms.py a year ago, but I don't think they actually affected this. I don't have time to track it down now, unfortunately. |
Might it possibly be related to changes made recently to add_collections()? On Fri, Jun 6, 2014 at 1:42 PM, Eric Firing notifications@github.com
|
No, on two counts: first, because the examples here don't use collections; and second, because the change to add_collections defaults to causing datalims to be calculated, but does not require it. |
26ed35b |
#2357 (found the commit in gitk and the child commit had that is the mesage). |
Now ax1.get_xlim() returns erroneous (-0.06, 0.06) because when bounding boxes of two plots are united, infinitely small bounding box of ax2 (Bbox('array([[ inf, inf],\n [-inf, -inf]])')) is considered infinitely large in transforms.BboxBase.union(). E. g. transforms.BboxBase.union([ax1.dataLim, ax2.dataLim]) returns Bbox('array([[-inf, -inf],\n [ inf, inf]])') which is incorrect.
This bug prevents correct display of two plots with shared axis while one of them has empty data.
The text was updated successfully, but these errors were encountered: