Skip to content

Getting numeric value from unit registry on imshow function#26104

Draft
lucavribeiro wants to merge 2 commits intomatplotlib:mainfrom
lucavribeiro:imshow_vmin_vmax_with_units
Draft

Getting numeric value from unit registry on imshow function#26104
lucavribeiro wants to merge 2 commits intomatplotlib:mainfrom
lucavribeiro:imshow_vmin_vmax_with_units

Conversation

@lucavribeiro
Copy link
Copy Markdown

PR summary

closes #25062

With this it would be possible to pass unit-ful data as vmin/vmax parameters on imshow function

PR checklist

@lucavribeiro lucavribeiro marked this pull request as draft June 10, 2023 19:11
@ksunden
Copy link
Copy Markdown
Member

ksunden commented Jun 13, 2023

This is a fairly restricted definition of "unitful" data, and not one that we use anywhere else in matplotlib.

If we were to do this, I think it would have to be a full matplotlib.units support.

@thiagoluisbecker
Copy link
Copy Markdown
Contributor

@ksunden Something like that would make a fit for this issue?
Captura de tela 2023-07-04 161829

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Needs decision

Development

Successfully merging this pull request may close these issues.

[ENH]: Ability to set imshow vmin/vmax with units

4 participants