Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleaned up the span_where class method from Polycollections. #26874

Merged
merged 1 commit into from
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
Contributor Author

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

QuLogic commented Sep 22, 2023

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

  1. An import of BrokenBarHCollection in lib/matplotlib/axes/_axes.pyi and lib/matplotlib/pyplot.py
  2. A doc reference in doc/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. In lib/matplotlib/axes/_axes.pyi and lib/matplotlib/pyplot.py, broken_barh is typed as returning BrokenBarHCollection; this is wrong and should be changed to PolyCollection.

@QuLogic
Copy link
Member

QuLogic commented Sep 22, 2023

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

@agautam478
Copy link
Contributor Author

agautam478 commented Sep 25, 2023

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``

@ksunden ksunden mentioned this pull request Sep 25, 2023
14 tasks
Copy link
Member

@QuLogic QuLogic 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.

@QuLogic QuLogic merged commit 31ae0fe into matplotlib:main Sep 27, 2023
40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants