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 — Figure.logo: Let the 'style' parameter support descriptive arguments by seisman · Pull Request #4074 · GenericMappingTools/pygmt

Conversation

@seisman

@seisman seisman commented Sep 3, 2025 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Member

This PR improves the style parameter (i.e., -S option). Previously the style parameter can only accept l/n/u. Now it can accept more descriptive arguments standard/no_label/url.

The upstream GMT uses long names standard/none/url (see https://github.com/GenericMappingTools/gmt/blob/c95470b1c78c412fa15d388be0d9b07de111ba49/src/longopt/gmtlogo_inc.h#L37), but I feel no_label is more descriptive.

Preview: https://pygmt-dev--4074.org.readthedocs.build/en/4074/api/generated/pygmt.Figure.logo.html

Sorry, something went wrong.

Uh oh!

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

All reactions
@seisman
Figure.logo: Let the 'style' parameter support descriptive arguments
ae88038
@seisman seisman added this to the 0.17.0 milestone Sep 3, 2025
@seisman
seisman requested review from a team and Copilot September 3, 2025 14:23
@seisman seisman added enhancement Improving an existing feature needs review This PR has higher priority and needs review. labels Sep 3, 2025
Copilot AI reviewed Sep 3, 2025
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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.

Pull Request Overview

This PR enhances the style parameter in the Figure.logo method to accept more descriptive string arguments instead of single-letter codes. The change improves code readability by allowing "standard", "url", and "no_label" instead of cryptic "l", "u", and "n" values.

  • Updated the style parameter to use descriptive literal types with proper type hints
  • Implemented alias mapping to convert descriptive names to GMT's single-letter codes
  • Updated documentation to reflect the new descriptive parameter values

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread pygmt/src/logo.py Resolved

Uh oh!

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

Comment thread pygmt/src/logo.py Resolved

Uh oh!

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

seisman and others added 2 commits September 3, 2025 22:32
@seisman
Update pygmt/src/logo.py
55399cb
Co-authored-by: Copilot <[email protected]>
@seisman
Fix docstrings
f1a573a
@weiji14

weiji14 commented Sep 3, 2025

Copy link
Copy Markdown
Member

Hmm, I'm getting a 403 when trying to access https://dagshub.com/GenericMappingTools/pygmt, server might be down or something.

All reactions

Sorry, something went wrong.

Uh oh!

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

@seisman

seisman commented Sep 4, 2025

Copy link
Copy Markdown
Member Author

Hmm, I'm getting a 403 when trying to access https://dagshub.com/GenericMappingTools/pygmt, server might be down or something.

I can access the website, and I can even run dvc pull successfully using my local computer. So it's more likely CI issues.

All reactions

Sorry, something went wrong.

Uh oh!

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

@seisman
Merge branch 'main' into logo/style
7df6c7d
@yvonnefroehlich

yvonnefroehlich commented Sep 4, 2025

Copy link
Copy Markdown
Member

Hmm, I'm getting a 403 when trying to access https://dagshub.com/GenericMappingTools/pygmt, server might be down or something.

I can access the website, and I can even run dvc pull successfully using my local computer.

Same for me.

All reactions

Sorry, something went wrong.

Uh oh!

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

@yvonnefroehlich

yvonnefroehlich commented Sep 4, 2025

Copy link
Copy Markdown
Member

The upstream GMT uses long names standard/none/url (see https://github.com/GenericMappingTools/gmt/blob/c95470b1c78c412fa15d388be0d9b07de111ba49/src/longopt/gmtlogo_inc.h#L37), but I feel no_label is more descriptive.

I prefere no_label. In general, I feel having "none" and None is not optimal.

All reactions

Sorry, something went wrong.

Uh oh!

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

yvonnefroehlich
yvonnefroehlich reviewed Sep 4, 2025
View reviewed changes
Comment thread pygmt/src/logo.py Resolved

Uh oh!

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

seisman and others added 3 commits September 4, 2025 18:29
@seisman @yvonnefroehlich
Fix site to website
5f981c5
Co-authored-by: Yvonne Fröhlich <[email protected]>
@dependabot @seisman
Build(deps): Bump codecov/codecov-action from 5.4.3 to 5.5.0 (#4076)
1741d0a
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 5.4.3 to 5.5.0.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](codecov/codecov-action@18283e0...fdcc847)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-version: 5.5.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
@seisman
Merge branch 'main' into logo/style
eea5ae4
@seisman

seisman commented Sep 6, 2025

Copy link
Copy Markdown
Member Author

I tried debugging the DVC issue but wasn't successful. I think we'll have to move on for now and revisit it in the future if a fix becomes available.

yvonnefroehlich reacted with confused emoji
All reactions
  • 😕 1 reaction

Sorry, something went wrong.

Uh oh!

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

seisman added 4 commits September 8, 2025 06:33
@seisman
Merge branch 'main' into logo/style
b8cba0c
@seisman
Merge branch 'main' into logo/style
f051e7e
@seisman
Merge branch 'main' into logo/style
489072b
@seisman
Merge branch 'main' into logo/style
d628ce0
@seisman
seisman requested a review from a team September 10, 2025 12:05
@seisman
Merge branch 'main' into logo/style
2da5a8a
@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. labels Sep 13, 2025
seisman added 2 commits September 15, 2025 14:55
@seisman
Merge branch 'main' into logo/style
2366713
@seisman
Merge remote-tracking branch 'origin/logo/style' into logo/style
a235b08
@seisman

seisman commented Sep 15, 2025

Copy link
Copy Markdown
Member Author

Ping @GenericMappingTools/pygmt-maintainers for final reviews. Will merge in 24 hours.

All reactions

Sorry, something went wrong.

Uh oh!

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

yvonnefroehlich
yvonnefroehlich approved these changes Sep 15, 2025
View reviewed changes
yvonnefroehlich
yvonnefroehlich reviewed Sep 15, 2025
View reviewed changes

@yvonnefroehlich yvonnefroehlich 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 feel style was introduced to consistently use this alias for -S. But I am wondering if something linke label would be more suitable here.

Sorry, something went wrong.

Uh oh!

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

All reactions
@seisman
Improve docstring for style
2ea461e
@seisman

seisman commented Sep 15, 2025

Copy link
Copy Markdown
Member Author

I feel style was introduced to consistently use this alias for -S.

Yes.

But I am wondering if something linke label would be more suitable here.

label also sounds a good name, but we already have label aliased to the common option -l. Using label here may be a little misleading.

yvonnefroehlich reacted with eyes emoji
All reactions
  • 👀 1 reaction

Sorry, something went wrong.

Uh oh!

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

seisman added 2 commits September 17, 2025 10:04
@seisman
Merge branch 'main' into logo/style
9af837d
@seisman
Merge branch 'main' into logo/style
f13a43c
@seisman

seisman commented Sep 17, 2025

Copy link
Copy Markdown
Member Author

Any more comments on the changes? Plan to merge it in 24 hours.

All reactions

Sorry, something went wrong.

Uh oh!

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

weiji14
weiji14 approved these changes Sep 17, 2025
View reviewed changes
Comment thread pygmt/src/logo.py Resolved

Uh oh!

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

seisman and others added 2 commits September 18, 2025 19:35
@seisman @weiji14
Update pygmt/src/logo.py
f28757a
Co-authored-by: Wei Ji <[email protected]>
@seisman
Merge branch 'main' into logo/style
de92248
@seisman seisman removed the final review call This PR requires final review and approval from a second reviewer label Sep 18, 2025
@seisman
seisman merged commit 88dc47b into main Sep 18, 2025
@seisman
seisman deleted the logo/style branch September 18, 2025 11:39
@seisman seisman mentioned this pull request Oct 15, 2025
Figure.logo: Plot the GMT logo #4165
Closed
12 of 15 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@yvonnefroehlich yvonnefroehlich yvonnefroehlich approved these changes
Copilot code review Copilot
Copilot review effort
Applies to this pull request for everyone.Learn more about Copilot code review.
Copilot left review comments
@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.17.0

Development

Successfully merging this pull request may close these issues.

Uh oh!

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

4 participants

@seisman @weiji14 @yvonnefroehlich
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 01402792 — 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.