-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Allow use of unitful data in images #19476
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
Re-engineering data handling to make this possible in general is the goal of the Chan-Zuckerberg proposal that just was renewed. I'm not sure if something practical like this should be done in the more immediate term. Adding a converter to everything that could use a converter is possible, but will likely end up causing some pain at somepoitn without some proper engineering. ie. suppose I want to change the z-data of the image in an animation? |
Ah apologies, I didn't find #7383 in my searches before opening this issue. Happy to close this and divert discussion there. |
Well that discussion was just for categorical, so pointing out that it is more general is useful. |
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! |
Problem
Often the data stored in images can have physical values associated with them. It would therefore be good if there was support for using the unit machinery to allow images to have units.
Proposed Solution
Here's a short example that should work fine using units, but which currently fails. The use of datetime is a bit contrived, but I chose it to avoid a third party package. For a more realistic real-world example see astropy/astropy#11306.
This fails in
The text was updated successfully, but these errors were encountered: