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

Cleaned up the span_where class method from Polycollections.#26874

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
QuLogic merged 1 commit intomatplotlib:mainfromagautam478:collections
Sep 27, 2023

Conversation

agautam478
Copy link
Contributor

PR summary

This PR removes the deprecated code during the version 3.7 from lib/matplotlib/collection.py which is a sub issue in the parent issues here:#26865

PR checklist

"the compressed values is deprecated. "
"Pass the full 2D shape of the original array "
f"{prev_unmask.shape} including the masked elements.")
"the compressed values is deprecated. "
Copy link
Member

Choose a reason for hiding this comment

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

Were these changes intentional?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

The pep8 linter fixed the sapcings.

@QuLogic
Copy link
Member

Linting shows that there is a little more fallout from this removal:

  1. An import ofBrokenBarHCollection inlib/matplotlib/axes/_axes.pyi andlib/matplotlib/pyplot.py
  2. A doc reference indoc/users/prev_whats_new/whats_new_1.4.rst; this should be changed to code style (remove the:class: and change the single back ticks to double backticks).
  3. Inlib/matplotlib/axes/_axes.pyi andlib/matplotlib/pyplot.py,broken_barh is typed as returningBrokenBarHCollection; this iswrong and should be changed toPolyCollection.
agautam478 reacted with thumbs up emoji

@QuLogic
Copy link
Member

Sorry, there is one more remaining instance in the docs atdoc/api/artist_api.rst.

agautam478 reacted with thumbs up emoji

@agautam478
Copy link
ContributorAuthor

agautam478 commentedSep 25, 2023
edited
Loading

yayy! finally the build passed. 👯
Thanks@QuLogic for the review.

@@ -221,7 +221,6 @@ Added size related functions to specialized `.Collection`\s
Added the ``get_size`` and ``set_size`` functions to control the size of
elements of specialized collections (
:class:`~matplotlib.collections.AsteriskPolygonCollection`
:class:`~matplotlib.collections.BrokenBarHCollection`
Copy link
Member

Choose a reason for hiding this comment

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

This shouldn't be removed from old docs, even though it doesn't exist any more, because it's a historical reflection of "what's new in 1.4". Mark it as code style instead:

Suggested change
:class:`~matplotlib.collections.BrokenBarHCollection`
``matplotlib.collections.BrokenBarHCollection``

agautam478 reacted with thumbs up emoji
@ksundenksunden mentioned this pull requestSep 25, 2023
14 tasks
Copy link
Member

@QuLogicQuLogic left a comment

Choose a reason for hiding this comment

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

If you are comfortable rebasing and squashing this down to one commit, please do so. Otherwise, I suggest the person who merges do so.

@QuLogicQuLogic merged commit31ae0fe intomatplotlib:mainSep 27, 2023
@ksundenksunden mentioned this pull requestSep 28, 2023
5 tasks
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@tacaswelltacaswelltacaswell left review comments

@QuLogicQuLogicQuLogic approved these changes

@rcomerrcomerrcomer approved these changes

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

Successfully merging this pull request may close these issues.

4 participants
@agautam478@QuLogic@tacaswell@rcomer

[8]ページ先頭

©2009-2025 Movatter.jp