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

Added labels to images in the gallery [sprint]#2161

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
mdboom merged 1 commit intomatplotlib:masterfromtbekolay:better-gallery
Jun 29, 2013
Merged

Added labels to images in the gallery [sprint]#2161

mdboom merged 1 commit intomatplotlib:masterfromtbekolay:better-gallery
Jun 29, 2013

Conversation

tbekolay
Copy link
Contributor

Right now the label is just the filename of the example, but it should be a string that we define in the example file (like in scikits-image / scikits-learn).

- Right now it's just the filename of the example- It should perhaps be a string that we define in the example file  (like in scikits-image / scikits-learn)
@@ -121,6 +121,7 @@ def generate_example_rst(app):
rstfile = '%s.rst'%basename
outrstfile = os.path.join(rstdir, rstfile)

# XXX make into title
Copy link
Member

Choose a reason for hiding this comment

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

I'm not sure I follow this comment. Would you mind expanding on this (in this github interface before adding a new commit)?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

It would be nice to write titles for each of the example plots, likely in a file-level docstring. I was just making a note to myself that if each plot has a title, then it'd be good to change the following line to something likefhsubdirIndex.write(' %s <%s>\n'%(filetitle,rstfile)).

Copy link
Member

Choose a reason for hiding this comment

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

Ah, ok. Maybe you could update this comment along the lines of:

# XXX: We might consider putting extra metadata in the example files to include a title. If so, this line is where we would add this information.

Copy link
Member

Choose a reason for hiding this comment

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

Good idea.

Copy link
Member

Choose a reason for hiding this comment

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

See#2174.

@pelson
Copy link
Member

Great idea. I've wanted to be able to use ctrl+F for textual search for a while, so this really improves the situation.

@NelleV
Copy link
Member

Apart from@pelson's comment, I'm 👍

@mdboom
Copy link
Member

👍 from me, too.

mdboom added a commit that referenced this pull requestJun 29, 2013
Added labels to images in the gallery [sprint]
@mdboommdboom merged commit4f29479 intomatplotlib:masterJun 29, 2013
@tbekolaytbekolay deleted the better-gallery branchJune 30, 2013 18:51
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

5 participants
@tbekolay@pelson@NelleV@mdboom@dmcdougall

[8]ページ先頭

©2009-2025 Movatter.jp