GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add filtering tags for gallery examples of projections by seisman · Pull Request #4643 · GenericMappingTools/pygmt

Conversation

@seisman

@seisman seisman commented May 19, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Changes in this PR:

  • Bump to sphinx-gallery >= 0.21.0
  • Add tags for projection gallery examples [Based on the figure and table in https://docs.generic-mapping-tools.org/dev/reference/options.html#coordinate-transformations-and-map-projections-the-j-option]

Preview: https://pygmt-dev--4643.org.readthedocs.build/en/4643/projections/index.html

The first PR to address #4599

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
seisman added 4 commits May 19, 2026 09:56
@seisman
Bump sphinx-gallery to 0.21.0
584484a
@seisman
Add tag to projections/azim/azim_lambert.py
2adad7e
@seisman
Add tags for equal-area projections
82f2c26
@seisman
Add tags for conformal projections
d140119
@seisman
seisman force-pushed the doc/gallery-tag branch from 497e5f5 to d140119 Compare May 19, 2026 09:24
@seisman seisman changed the title WIP + POC: Add dynamic filtering by tags for gallery examples Add filtering tags for gallery examples of projection May 19, 2026
@seisman seisman added the enhancement Improving an existing feature label May 19, 2026
@seisman seisman added this to the 0.19.0 milestone May 19, 2026
@seisman
seisman marked this pull request as ready for review May 19, 2026 09:26
@seisman
seisman requested a review from a team May 19, 2026 09:26
@seisman seisman changed the title Add filtering tags for gallery examples of projection Add filtering tags for gallery examples of projections May 19, 2026
@yvonnefroehlich

yvonnefroehlich commented May 20, 2026

Copy link
Copy Markdown
Member

Looking at the example by Sphinx at https://sphinx-gallery.github.io/stable/auto_examples/index.html?#general-examples, there should be a nice tag symbol. However, in the preview of this PR, it looks a bit strange. Besides this, I feel it could improve the structure if "Tags" were written in bold font, but I think we cannot change this.

Preview of this PR Example by Sphinx
tag_symbol_pygmt tag_symbol_example
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@seisman
Adjust the style for tags
fe40f73
@seisman

seisman commented May 20, 2026

Copy link
Copy Markdown
Member Author

there should be a nice tag symbol. However, in the preview of this PR, it looks a bit strange.

I can see the tag symbol in the preview, so it's likely a browser issue.

I feel it could improve the structure if "Tags" were written in bold font, but I think we cannot change this.

Actually we can, I've adjusted the style in commit fe40f73

image
yvonnefroehlich reacted with laugh emoji
All reactions
  • 😄 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@seisman seisman added the needs review This PR has higher priority and needs review. label May 20, 2026
@yvonnefroehlich

yvonnefroehlich commented May 20, 2026

Copy link
Copy Markdown
Member

there should be a nice tag symbol. However, in the preview of this PR, it looks a bit strange.

I can see the tag symbol in the preview, so it's likely a browser issue.

Your are probably right, on my smarphone it looks good.

I feel it could improve the structure if "Tags" were written in bold font, but I think we cannot change this.

Actually we can, I've adjusted the style in commit fe40f73

That's good and with the changes it looks much better.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

weiji14
weiji14 reviewed May 20, 2026
View reviewed changes

@weiji14 weiji14 left a comment

Copy link
Copy Markdown
Member

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.

I think only Mollweide (equal-area) is missing a tag. Otherwise should be ok.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@seisman
Add the 'equal-area' tag to Mollweide
f71ee74
@seisman

seisman commented May 21, 2026

Copy link
Copy Markdown
Member Author

I think only Mollweide (equal-area) is missing a tag. Otherwise should be ok.

Nice catch. Fixed in f71ee74.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

weiji14
weiji14 approved these changes May 21, 2026
View reviewed changes
@seisman seisman added final review call This PR requires final review and approval from a second reviewer and removed needs review This PR has higher priority and needs review. final review call This PR requires final review and approval from a second reviewer labels May 21, 2026
@seisman
seisman merged commit cd883d2 into main May 21, 2026
10 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@seisman
seisman deleted the doc/gallery-tag branch May 21, 2026 13:46
@seisman seisman mentioned this pull request Aug 21, 2026
Fix the required sphinx-gallery version in doc/conf.py #4845
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@weiji14 weiji14 weiji14 approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

enhancement Improving an existing feature

Projects

None yet

Milestone

0.19.0

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@seisman @yvonnefroehlich @weiji14
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.