| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Hmm, I'm not sure about whether this is intended or not, it bisects to 12c27f3 so maybe @tacaswell will know more?
We messed around w/ all of this for 2.1.2. #10133 W/o looking carefully, does that fix this?
Pretty sure it does - it was a round off error that caused this, but its now been fixed for large floats.
It didn't seem fixed when I ran the above test on the master branch.
agreed. The image is stored as float64. You lose resolution at 2^53=9e15. I’m not sure how this worked in 2.1, but that’s the problem here.
I tried to set the dtype to float 128 fro big numbers, but I was told there is no such thing...
Image interpolation is the bug that just keeps giving!
The chain of bugs and fixes here goes:
It’s the same bug, it’s just that #10133 only fixed up to 10^16 or so.
The ringing / saturation in the lower left of the test is correct. If you normalize first you are effectively clipping the impact of the outliers.
Well, we could do something like pre-clip the data to some suitably large number around the vmin/vmax, but not 17 orders of magnitude. That should preserve both behaviours
Or folks could mask their invalid data instead of passing in huge (I assume) invalid values.
I would not assume that huge data points are automatically invalid. In our application we have values between -1 and 1 in most of the image, but it can include regions with values approaching Inf.
I would find it strange to mask some of the data before plotting them. I'm also not aware that you have to do something like this in Matlab or gnuplot.
See #10613 for a fix....
closed by #10613
| Back | FazBrowse Home | New Git URL |
Since 2.1 the effective color resolution of imshow(x, vmin=-1, vmax=1) seems to depend on large outliers in x.
Is this intended behavior?
Thanks for clarification!
Actual outcome

Expected outcome

Matplotlib version