Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Closed
Milestone
Description
Since 2.1 the effective color resolution ofimshow(x, vmin=-1, vmax=1)
seems to depend on large outliers inx
.
Is this intended behavior?
Thanks for clarification!
importnumpyasnpimportmatplotlibasmplimportmatplotlib.pyplotaspltx=np.linspace(-1,1,500 )x=np.ones([20,1])*x[np.newaxis, :]x1=x.copy()x1[0,0]=1e16x2=x.copy()x2[0,0]=1e17_,axes=plt.subplots(nrows=3)axes[0].imshow(x,vmin=-1,vmax=1)axes[1].imshow(x1,vmin=-1,vmax=1)axes[2].imshow(x2,vmin=-1,vmax=1)axes[0].set_title(mpl.__version__)plt.show()
Matplotlib version
- Operating system: Linux
- Matplotlib version: 2.1.0 (expected behavior in 2.0.2)
- Matplotlib backend: Qt5Agg
- Python version: 3.6.4
- Other libraries: numpy 1.13.3
- via conda