Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

imshow in 2.1: color resolution depends on outliers? #10567

Closed
Assignees
jklymak
Milestone
@trettberg

Description

@trettberg

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()

Actual outcome
figure_1-1

Expected outcome
figure_1

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp