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

Api pcolorargs deprecation#20268

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

Conversation

jklymak
Copy link
Member

PR Summary

Takingpcolormesh(x, y, Z), in 3.3.0 (#16258) we introduced the'nearest' and 'auto' kwargs forshading in pcolor(mesh) to properly allow fornot dropping the last row and column in the case that cell centres are passed for x and y.

In 3.3:

  • Default:'flat'
  • Cell edges: Z.shape = M, N, len(x) = N+1, len(y) = M+1
    • 'flat': x and y specify cell edges
    • 'nearest'/'gouraud':TypeError
    • 'auto': 'flat'
  • Cell centers: Z.shape = M, N, len(x) = N, len(y) = M
    • 'flat': DeprecationWarning and drop last row and column
    • 'nearest'/'gouraud': x and y specify cell centers
    • 'auto': 'nearest'

In 3.5:

  • Default:'auto'
  • Cell edges: Z.shape = M, N, len(x) = N+1, len(y) = M+1
    • 'flat': x and y specify cell edges
    • 'nearest'/'gouraud':TypeError
    • 'auto': 'flat'
  • Cell centers: Z.shape = M, N, len(x) = N, len(y) = M
    • 'flat':TypeError
    • 'nearest'/'gouraud': x and y specify cell centers
    • 'auto': 'nearest'

PR Checklist

  • Has pytest style unit tests (andpytest passes).
  • IsFlake 8 compliant (runflake8 on changed files to check).
  • New features are documented, with examples if plot related.
  • Documentation is sphinx and numpydoc compliant (the docs shouldbuild without error).
  • Conforms to Matplotlib style conventions (installflake8-docstrings and runflake8 --docstring-convention=all).
  • New features have an entry indoc/users/next_whats_new/ (follow instructions in README.rst there).
  • API changes documented indoc/api/next_api_changes/ (follow instructions in README.rst there).

@jklymakjklymakforce-pushed theapi-pcolorargs-deprecation branch from77dfcc8 toc1c02f0CompareMay 20, 2021 05:15
@jklymakjklymak marked this pull request as draftMay 20, 2021 05:16
@jklymakjklymak marked this pull request as ready for reviewMay 20, 2021 06:18
Copy link
Contributor

@brunobeltranbrunobeltran left a comment

Choose a reason for hiding this comment

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

LGTM

@brunobeltranbrunobeltran merged commit303873f intomatplotlib:masterMay 20, 2021
@jklymakjklymak deleted the api-pcolorargs-deprecation branchMay 20, 2021 19:07
@jklymak
Copy link
MemberAuthor

Thanks both!

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@brunobeltranbrunobeltranbrunobeltran approved these changes

@timhoffmtimhoffmtimhoffm approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
v3.5.0
Development

Successfully merging this pull request may close these issues.

3 participants
@jklymak@brunobeltran@timhoffm

[8]ページ先頭

©2009-2025 Movatter.jp