Tweak secondary_{x,y}axis docs. by anntzer · Pull Request #31405 · matplotlib/matplotlib · GitHub
Skip to content

Tweak secondary_{x,y}axis docs. - #31405

Merged
QuLogic merged 1 commit into
matplotlib:mainfrom
anntzer:saxd
Mar 28, 2026
Merged

QuLogic merged 1 commit into
matplotlib:mainfrom
anntzer:saxd

Conversation

@anntzer

@anntzer anntzer commented Mar 27, 2026

Copy link
Copy Markdown
Contributor

Use a full sentence with a principal clause. Also, the data is not plotted on the x- or y-axis; it is the scale that is on the x- or y-axis.

PR summary

AI Disclosure

PR checklist

@jklymak jklymak left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Small suggestion though I wonder if this is even an example or the by far predominant use

Comment thread lib/matplotlib/axes/_axes.py Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
This axis can e.g. display a second x-scale for the data plotted on the Axes.
This axis can, for example, display a second x-scale for the data plotted on the Axes.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Given the discussion below, I reworded to "is typically used to...". Let me know if you want to stick to "for example".

Comment thread lib/matplotlib/axes/_axes.py Outdated

For example if we want to have a second scale for the data plotted on
the yaxis.
This axis can e.g. display a second y-scale for the data plotted on the Axes.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
This axis can e.g. display a second y-scale for the data plotted on the Axes.
This axis can, for example, display a second y-scale for the data plotted on the Axes.

@timhoffm

timhoffm commented Mar 27, 2026

Copy link
Copy Markdown
Member

Use a full sentence with a principal clause.  Also, the data is not
plotted on the x- or y-axis; it is the scale that is on the x- or
y-axis.
@QuLogic QuLogic added this to the v3.11.0 milestone Mar 28, 2026
@QuLogic
QuLogic merged commit 30c3d78 into matplotlib:main Mar 28, 2026
40 of 41 checks passed
timhoffm added a commit to timhoffm/matplotlib that referenced this pull request Mar 28, 2026
@anntzer
anntzer deleted the saxd branch March 28, 2026 08:05
QuLogic pushed a commit that referenced this pull request Mar 30, 2026
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.

4 participants