Skip to content
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

Fails to plot arrays with all values being zero #61

Open
tobstac opened this issue Aug 31, 2022 · 0 comments
Open

Fails to plot arrays with all values being zero #61

tobstac opened this issue Aug 31, 2022 · 0 comments

Comments

@tobstac
Copy link

tobstac commented Aug 31, 2022

Problem description

Checking the different variables in a dataset can result in

ValueError: x and y arguments to pcolormesh cannot have non-finite values or be of type numpy.ma.core.MaskedArray with masked values

if a field contains only zeros or missing values.

Expected Output

Plot it anyway. It might be a bit unnecessary in most cases as there is no information in it besides that a field is all zero (which, still, would be interesting for field containing any kind of mass balance and such). Also it might screw up further plots which are shown with additional (empty) colorbars for whatever reason.

I would very much appreciate if this could be fixed.

Thanks and best regards!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant