Added labels to images in the gallery [sprint]#2161
Added labels to images in the gallery [sprint]#2161mdboom merged 1 commit intomatplotlib:masterfrom tbekolay:better-gallery
Conversation
- 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)
There was a problem hiding this comment.
I'm not sure I follow this comment. Would you mind expanding on this (in this github interface before adding a new commit)?
There was a problem hiding this comment.
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 like fhsubdirIndex.write(' %s <%s>\n'%(filetitle,rstfile)).
There was a problem hiding this comment.
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.
|
Great idea. I've wanted to be able to use ctrl+F for textual search for a while, so this really improves the situation. |
|
Apart from @pelson's comment, I'm 👍 |
|
👍 from me, too. |
Added labels to images in the gallery [sprint]
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).