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

Fix imshow()ing PIL-opened images.#13405

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
jklymak merged 1 commit intomatplotlib:masterfromanntzer:pil_imshow
Feb 12, 2019

Conversation

anntzer
Copy link
Contributor

We actually handle grayscale images just fine, but they need to be
transformed into masked arrays like everyone else.

Closes#12140 (regression in 2.1.0), so maybe worth backporting to 2.2.x.

PR Summary

PR Checklist

  • Has Pytest style unit tests
  • Code isFlake 8 compliant
  • New features are documented, with examples if plot related
  • Documentation is sphinx and numpydoc compliant
  • Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there)
  • Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way

We actually handle grayscale images just fine, but they need to betransformed into masked arrays like everyone else.
@anntzeranntzer added this to thev3.1.0 milestoneFeb 11, 2019
@tacaswelltacaswell modified the milestones:v3.1.0,v2.2.4Feb 11, 2019
Copy link
Member

@tacaswelltacaswell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

More compatibility with less code!

@anntzer
Copy link
ContributorAuthor

I think we should have yearly "only allowed to delete old, useless, bug-causing code chunks" periods...

@tacaswell
Copy link
Member

power-cycled to get the fix from master.

@jklymakjklymak merged commit0e2b9b1 intomatplotlib:masterFeb 12, 2019
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull requestFeb 12, 2019
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull requestFeb 12, 2019
@anntzeranntzer deleted the pil_imshow branchFebruary 12, 2019 06:13
timhoffm added a commit that referenced this pull requestFeb 12, 2019
…405-on-v2.2.xBackport PR#13405 on branch v2.2.x (Fix imshow()ing PIL-opened images.)
dstansby added a commit that referenced this pull requestFeb 12, 2019
…405-on-v3.0.xBackport PR#13405 on branch v3.0.x (Fix imshow()ing PIL-opened images.)
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@tacaswelltacaswelltacaswell approved these changes

@jklymakjklymakjklymak approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
v2.2.4
Development

Successfully merging this pull request may close these issues.

plt.imshow() error on PIL-opened tiff images
3 participants
@anntzer@tacaswell@jklymak

[8]ページ先頭

©2009-2025 Movatter.jp