You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When SymLogNorm (from matplotlib.colors) is given a vmin argument that is negative, it returns infs and nans, when it should be able to handle negative values. If you omit the vmin argument and instead give it data that goes negative, it will automatically set a negative vmin and work fine.
When
SymLogNorm
(frommatplotlib.colors
) is given avmin
argument that is negative, it returnsinf
s andnan
s, when it should be able to handle negative values. If you omit thevmin
argument and instead give it data that goes negative, it will automatically set a negativevmin
and work fine.See this notebook, which comes from this gist.
Here is the relevant portion:
Output:
It seems that the issue may have to do with incorrectly setting
_lower
and_upper
:Output:
The text was updated successfully, but these errors were encountered: