-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
NonUniformImage class needs Axes method and pyplot function #7763
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
NonUniformImage ultimately relies on |
pyplot.pcolor does not use _image.pcolor; it makes a PolyCollection. |
Interesting... Perhaps we should rename
|
The difference is that _image.pcolor2 colors rectangles specified by their edges; image.pcolor takes rectangle centers, and includes an option for bilinear interpolation. Yes, the naming is confusing. Exposing pcolorfast, and/or the part of it that uses pcolor2, is probably overdue, but it is not a substitute for NonUniformImage, which is also in need of better exposure. There is plenty of scope for improvements in this whole area, including factoring more chunks of related functionality out of _axes.py. |
Actually, I don't think the bilinear interpolation option in NonUniformImage is such a great idea. Without that, I think _image.pcolor could be dumped and everything could be done with pcolor2. NonUniformImage would just add an initial step, which could be at the python level, to make an edge grid based on the user's center grid. I originally wrote pcolorfast because I use this type of plot quite a bit, often with an irregular rectangular grid. I hacked pcolor2 out of _image.pcolor. |
Perhaps remove the new-contributor-friendly tag? I don't think it's hard but this apparently needs some nontrivial API discussions. (Anyways, add it back if you disagree.) |
This issue has been marked "inactive" because it has been 365 days since the last comment. If this issue is still present in recent Matplotlib releases, or the feature request is still wanted, please leave a comment and this label will be removed. If there are no updates in another 30 days, this issue will be automatically closed, but you are free to re-open or create a new issue if needed. We value issue reports, and this procedure is meant to help us resurface and prioritize issues that have not been addressed yet, not make them disappear. Thanks for your help! |
Still open, still a good idea, and technically very easy, but changed level to medium due to the API discussions that will need to be had. |
The
NonUniformImage
class in image.py is potentially a good match for many use cases, but it is rarely used because it's high-level API is missing. It should be as accessible as imshow and pcolormesh.The text was updated successfully, but these errors were encountered: