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

Add deprecation for setting data with non sequence type inLine2D#25196

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

Conversation

ericpre
Copy link
Member

Follow up on#22329 to add a deprecation cycle for this API change and avoid breaking dependent libraries! :)

PR Summary

The following will now raise aMatplotlibDeprecationWarning instead ofRuntimeError:

importmatplotlib.pyplotaspltfig,ax=plt.subplots()l=ax.axhline(y=0.5)l.set_ydata(0.25)

PR Checklist

Documentation and Tests

  • Has pytest style unit tests (andpytest passes)
  • [n/a] Documentation is sphinx and numpydoc compliant (the docs shouldbuild without error).
  • [n/a] New plotting related features are documented with examples.

Release Notes

  • [n/a] New features are marked with a.. versionadded:: directive in the docstring and documented indoc/users/next_whats_new/
  • [n/a] API changes are marked with a.. versionchanged:: directive in the docstring and documented indoc/api/next_api_changes/
  • Release notes conform with instructions innext_whats_new/README.rst ornext_api_changes/README.rst

@ericpreericpreforce-pushed theadd_deprecation_sequence_set_data_line branch fromc8a44ac to044fbc0CompareFebruary 11, 2023 12:11
@ericpreericpre changed the base branch fromv3.7.x tomainFebruary 11, 2023 12:11
@rcomerrcomer added this to thev3.7.0 milestoneFeb 11, 2023
@jklymakjklymak added the Release criticalFor bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions. labelFeb 11, 2023
@oscargusoscargus merged commit545b581 intomatplotlib:mainFeb 12, 2023
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull requestFeb 12, 2023
dstansby pushed a commit that referenced this pull requestFeb 12, 2023
…e type in `Line2D` (#25201)Co-authored-by: Oscar Gustafsson <oscar.gustafsson@gmail.com>
@ksundenksunden mentioned this pull requestFeb 20, 2023
6 tasks
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@jklymakjklymakjklymak approved these changes

@oscargusoscargusoscargus approved these changes

Assignees
No one assigned
Labels
Release criticalFor bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.
Projects
None yet
Milestone
v3.7.0
Development

Successfully merging this pull request may close these issues.

6 participants
@ericpre@tacaswell@jklymak@oscargus@MischaMegens2@rcomer

[8]ページ先頭

©2009-2025 Movatter.jp