-
Notifications
You must be signed in to change notification settings - Fork 224
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
Reorganize gallery examples #995
Conversation
@willschlitzer Thanks for opening the PR. It would be much easier to discuss how we want to group gallery examples by viewing what any new designs look like. To make it work, you also need to update the following lines in Lines 72 to 85 in 55c6176
|
Ping @GenericMappingTools/python @GenericMappingTools/python-maintainers for comments. |
Looks great! Based on #967 and the great response to @liamtoney's ROSES tutorial, I hope we can eventually have a whole seismology gallery section! |
Perhaps rename the directory |
Kinda unrelated, but can we rename one of the
|
Looks great~ Do Colorbar and Legend only belong to Map and map elements? But I've no better category for them. Shall we add a category called There is a category called Images, symbols, and markers. Shall we move By the way, shall we rename this gallery to something like Referring to #876 (comment) and #876 (comment), how about the following content for the current galleries?
|
I agree we should have a separate category for images. As I commented in #876, I think the category name could be "Images and contours" or "Images, contours and fields", like matplotlib (https://matplotlib.org/stable/gallery/index.html#images-contours-and-fields).
Sounds good. Actually, |
Can we control the figure order in each category? For example, in |
Done in 965dbf3 |
There are different ways to sort the examples in one section (see https://sphinx-gallery.github.io/stable/configuration.html#within-gallery-order). Line 91 in ffe0c2a
|
I just pushed a few changes to this branch: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR now looks good to me.
Ping @GenericMappingTools/python @GenericMappingTools/python-contributors
@GenericMappingTools/python-maintainers for comments and approvals.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! No further suggestions.
Great~ |
@weiji14 Can you confirm that you are no longer requesting changes? |
Ping @weiji14 to give this PR a final review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, thanks for the ping. Juggling too much on my plate recently (handling a release on another Python package and uni stuff). Just one comment.
Changes in this PR: - Reorganizes the gallery examples to have more specific categories - Sort gallery examples by "title" in each subsection - Use underscores in file and directory names Co-authored-by: Dongdong Tian <seisman.info@gmail.com> Co-authored-by: Michael Grund <michael_grund@gmx.de> Co-authored-by: Wei Ji <23487320+weiji14@users.noreply.github.com> Co-authored-by: Yao Jiayuan <coreman.seism@gmail.com> Co-authored-by: Meghan Jones <meghanj@hawaii.edu>
This pull request reorganizes the gallery examples to have more specific categories.
Fixes #876
Reminders
make format
andmake check
to make sure the code follows the style guide.doc/api/index.rst
.Slash Commands
You can write slash commands (
/command
) in the first line of a comment to performspecific operations. Supported slash commands are:
/format
: automatically format and lint the code/test-gmt-dev
: run full tests on the latest GMT development version