Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Updates the galleries/tutorials/artists.py file in response to issue #28920 #29080

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

Merged
merged 4 commits into from
Nov 14, 2024

Conversation

focardozom
Copy link
Contributor

PR summary

This pull request addresses issue #28920 by updating the galleries/tutorials/artists.py file to allow suppressing missing references using a ! prefix, rather than the missing_references extension.

PR checklist

  • This PR updates the galleries/tutorials/artists.py file in response to issue #28920.
  • The modified file can be viewed here.

@github-actions github-actions bot added the Documentation: tutorials files in galleries/tutorials label Nov 5, 2024
@tacaswell tacaswell added this to the v3.10.0 milestone Nov 5, 2024
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Thank you for opening your first PR into Matplotlib!

If you have not heard from us in a week or so, please leave a new comment below and that should bring it to our attention. Most of our reviewers are volunteers and sometimes things fall through the cracks.

You can also join us on gitter for real-time discussion.

For details on testing, writing docs, and our review process, please see the developer guide

We strive to be a welcoming and open project. Please follow our Code of Conduct.

Comment on lines 159 to 161
# stored as member variables :attr:`!Figure.patch
# <matplotlib.figure.Figure.patch>` and :attr:`!Axes.patch
# <matplotlib.axes.Axes.patch>` ("Patch" is a name inherited from
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
# stored as member variables :attr:`!Figure.patch
# <matplotlib.figure.Figure.patch>` and :attr:`!Axes.patch
# <matplotlib.axes.Axes.patch>` ("Patch" is a name inherited from
# stored as member variables :attr:`!Figure.patch` and
# :attr:`!Axes.patch` ("Patch" is a name inherited from

The explicit targets are not needed when we don't link and actually would render verbatim. Compare this

grafik

to the original

grafik

Please update all other occurences accoringly as well.

Ping @story645. This is something to be aware of for similar PRs.

@@ -11,15 +11,15 @@

There are three layers to the Matplotlib API.

* the :class:`matplotlib.backend_bases.FigureCanvas` is the area onto which
* the :class:`!matplotlib.backend_bases.FigureCanvas` is the area onto which
Copy link
Member

Choose a reason for hiding this comment

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

Actually, the previous way of expression is not exactly great - there is just no class
matplotlib.backend_bases.FigureCanvas. We have a logical concept of FigureCanvas that's realized through the subclasses of FigureCanvasBase. Maybe

Suggested change
* the :class:`!matplotlib.backend_bases.FigureCanvas` is the area onto which
* the *FigureCanvas* (subclasses of `.FigureCanvasBase`) is the area onto which

And subsequently only use FigureCanvas as a given name (for the logical concept) without further highlighting.

Or better, switch to :term:`FigureCanvas` , but that'd require first setting up a gloassary #28889.

But we can also leave all this for later.

the figure is drawn
* the :class:`matplotlib.backend_bases.Renderer` is the object which knows how
to draw on the :class:`~matplotlib.backend_bases.FigureCanvas`
* the :class:`!matplotlib.backend_bases.Renderer` is the object which knows how
Copy link
Member

Choose a reason for hiding this comment

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

Same issue as above: Renderer is a concept realized through the subclasses of RendererBase.

@timhoffm timhoffm marked this pull request as ready for review November 14, 2024 12:57
Copy link
Member

@timhoffm timhoffm left a comment

Choose a reason for hiding this comment

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

Let's take this as an incremental improval. And decouple from possible wording improvements.

@timhoffm timhoffm merged commit 55fa822 into matplotlib:main Nov 14, 2024
22 checks passed
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Nov 14, 2024
@timhoffm
Copy link
Member

Thanks @focardozom

timhoffm added a commit that referenced this pull request Nov 14, 2024
…080-on-v3.10.x

Backport PR #29080 on branch v3.10.x (Updates the `galleries/tutorials/artists.py` file in response to issue #28920)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation: tutorials files in galleries/tutorials
Projects
Status: Waiting for author
Development

Successfully merging this pull request may close these issues.

3 participants