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
imshow rendering issue #5959
Comments
Im not completely sure I understand what you issue is. Your code is plotting an image and not a graph? Please attach the image that you save not as a prof but to demonstrate what you are talking about. |
Does it work correctly with 'nearest'? |
We have merge large changes to the image algorithm in to master and 2.x @mcspritz if possible could you try testing this on the 2.x branch or master? |
Hi, I'm a newbie and want to know a simple thing, I built the cloned v2.x branch and it shows version 1.5.1+282.g918e80e, is this correct or I'm doing something wrong? Thanks. |
Yes that means that its 1.5.1 + 282 new commits on top of that which is the current state of the 2.x branch |
I think what we're seeing here is the case where the scaling factor from data points to on-screen pixels is not an integer multiple. Imagine a 64x64 array scaled up to 200x200pixels. Since 64 does not divide into 200 evenly, it's inevitable that not all data points will be rendered at the same size. If I were seeing data points that were more than one pixel different in size, I'd be worried, but in the first example I'm seeing data points of 6 or 7 pixels, and in the last example 1 or 2 pixels. So I'm not sure we could logically do any better (other than adding a mode and the inevitable complexity that would always ensure an integral scaling factor). |
Closing this, as I don't think there's a bug here, but feel free to continue to comment. |
Hi, I'm plotting this simple graph and I got non equal pixel sizes for the graph, it happens with all kind of sizes and dpi.
(I'm using matplotlib 1.5.0, python 3.5.1)
I can prove with some pictures as well if needed (I'm not sure if the bug is in matplotlib or in the renderer).
Thanks
The text was updated successfully, but these errors were encountered: