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

DOC: Standardize example titles - part 2#28641

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
timhoffm merged 1 commit intomatplotlib:mainfromtimhoffm:doc-example-titles
Aug 2, 2024

Conversation

timhoffm
Copy link
Member

Follow up to#28544. As there:

Following recommendations from#28527, this improves example titles. Take this as an incremental improvement. I've changed what I saw at a glance when going through the examples once. Certainly, one could do further improvements, but that can be done in follow-ups.

@github-actionsgithub-actionsbot added the Documentation: examplesfiles in galleries/examples labelAug 1, 2024
Fill Between with transparency
==============================
==================================
``fill_between`` with transparency
Copy link
MemberAuthor

@timhoffmtimhoffmAug 1, 2024
edited
Loading

Choose a reason for hiding this comment

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

So far, there's only one case of formatting example titles (plt.subplots). I feel it's slightly better to format function names as literal rather than just have them as plain text. But no strong opinion. We can also leave out the formatting if desired.

story645 reacted with thumbs up emoji
Copy link
Member

Choose a reason for hiding this comment

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

If sphinx doesn't complain, I fully support formatting function names this way

@timhoffmtimhoffmforce-pushed thedoc-example-titles branch 3 times, most recently fromaf9f872 toc6cf03fCompareAugust 1, 2024 22:47
Copy link
Member

@story645story645 left a comment

Choose a reason for hiding this comment

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

Thanks for putting in easy to review on phone PRs 😅

Filling the area between lines
==============================
===========================
Fill the area between lines
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
Filltheareabetweenlines
Fillareabetweenhorizontalcurves

Mostly to draw distinction between fill_betweenx,

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

I've kept the title (only adding "two"): "Fill the area between two lines"

While the docstring says "horizontal curves" and I've changedfill_betweenx to "Fill the area between vertical curves", I like the simplicity of "lines". This alludes toLine2D. The term "horizontal curve" insinuates precision, but is acutally still vague.

What "horizontal curve" actually means, are two curves that are defined at the same horizontal positions x. Visually, the lines can be quite non-horizontal. But I'm unable to express this in the title, so I stick to the very generic description, which I believe will catch people intuitively.

Adding lines to figures
=======================
=====================
Add lines to a figure
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
Addlinestoafigure
Drawlineswithoutanaxes

The "no axes" part isn't implied by the title and is I think the important part.

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

The point is really "to a figure" not "without an axes".

Getting a bit out of scope, but small enough to not make a separate PR: I've changed the content of the example to something more practical:

image

Embedding in GTK3 with a navigation toolbar
===========================================
=======================================
Embed in GTK3 with a navigation toolbar
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
EmbedinGTK3withanavigationtoolbar
EmbedplotwithanavigationtoolbarinGTK3

I think here it might be better to have the subject

Embedding in GTK4 with a navigation toolbar
===========================================
=======================================
Embed in GTK4 with a navigation toolbar
Copy link
Member

Choose a reason for hiding this comment

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

Same as 3, also do we want this as one example (embed in GTK) and then maybe tab GTK3 and GTK4 or have them as subheadings?

Embedding in GTK4
=================
=============
Embed in GTK4
Copy link
Member

Choose a reason for hiding this comment

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

Same, do we want one GTK example and then the diff versions as subheadings?

Embedding in wx #2
==================
==============
Embed in wx #2
Copy link
Member

Choose a reason for hiding this comment

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

Why wx#2 when it's wxagg in text?

Embedding in wx #5
==================
==============
Embed in wx #5
Copy link
Member

Choose a reason for hiding this comment

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

Can all the wx be combined?

@timhoffmtimhoffm deleted the doc-example-titles branchAugust 2, 2024 07:38
@timhoffmtimhoffm restored the doc-example-titles branchAugust 2, 2024 07:41
@timhoffmtimhoffm reopened thisAug 2, 2024
@timhoffm
Copy link
MemberAuthor

I leave all the embed stuff for now. That should be resturctured in a separate PR.

story645 reacted with thumbs up emoji

Copy link
Member

@story645story645 left a comment

Choose a reason for hiding this comment

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

slight grammar consistency nits, can self merge after fixing those.

Fill Betweenx Demo
==================
=========================================
Fill the area between two vertical curves
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
Filltheareabetweentwoverticalcurves
Filltheareabetweentwoverticallines

since you like lines better, since the terminology should stay consistent across both. I'm not sure if I think this example should be combined w/ the other one.

Adding lines to figures
=======================
=================================
Add lines to directly to a figure
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
Addlinestodirectlytoafigure
Addlinesdirectlytoafigure

grammar nit,

and my qualm/concern is folks not understanding what "to a figure" means, but the more I unpack that the more I'm thinking it probably can't be solved in a title

Follow up tomatplotlib#28544. As there:Following recommendations frommatplotlib#28527, this improves example titles.Take this as an incremental improvement. I've changed what I saw  t aglance when going through the examples once. Certainly, one could dofurther improvements, but that can be done in follow-ups.Co-authored-by: hannah <story645@gmail.com>
@timhoffmtimhoffm added this to thev3.10.0 milestoneAug 2, 2024
@timhoffmtimhoffm merged commitc17197c intomatplotlib:mainAug 2, 2024
22 checks passed
@timhoffmtimhoffm deleted the doc-example-titles branchAugust 2, 2024 20:45
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@story645story645story645 approved these changes

Assignees
No one assigned
Labels
Documentation: examplesfiles in galleries/examples
Projects
None yet
Milestone
v3.10.0
Development

Successfully merging this pull request may close these issues.

2 participants
@timhoffm@story645

[8]ページ先頭

©2009-2025 Movatter.jp