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 a note/warning that PS_CONVERT is not supported by Chuan1937 · Pull Request #4342 · GenericMappingTools/pygmt

Conversation

@Chuan1937

@Chuan1937 Chuan1937 commented Jan 12, 2026 •
edited by seisman
Loading

Uh oh!

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

Copy link
Copy Markdown
Member

Add a note and warning that PS_CONVERT is not supported in PyGMT.

Fixes #4256

Preview: https://pygmt-dev--4342.org.readthedocs.build/en/4342/api/generated/pygmt.config.html#pygmt.config

Sorry, something went wrong.

Uh oh!

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

All reactions
@Chuan1937
fix ps-convert settings
8c17049
Copilot AI review requested due to automatic review settings January 12, 2026 03:26
@Chuan1937
Merge branch 'main' into fix-psconvert
8122d48
Copilot started reviewing on behalf of Chuan1937 January 12, 2026 03:27
View session
Copilot AI reviewed Jan 12, 2026
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 pull request adds support for GMT's PS_CONVERT configuration parameter in PyGMT's psconvert function. When users call psconvert explicitly, any PS_CONVERT settings configured in their GMT environment will now be used as default options, matching GMT's behavior.

Changes:

  • Adds logic to read PS_CONVERT configuration via lib.get_default()
  • Parses comma-separated options from PS_CONVERT and injects them as defaults
  • Ensures user-provided arguments take precedence over PS_CONVERT settings

💡 Add Copilot custom instructions for smarter, more guided reviews. 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/psconvert.py Resolved

Uh oh!

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

Comment thread pygmt/src/psconvert.py Resolved

Uh oh!

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

Comment thread pygmt/src/psconvert.py Resolved

Uh oh!

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

Xingchen He
Update pygmt/src/psconvert.py
26c0c6d
Co-authored-by: Copilot <[email protected]>
@seisman seisman mentioned this pull request Jan 12, 2026
PS_CONVERT has no effect when using Figure.show/Figure.savefig/Figure.psconvert #4256
Closed
@Chuan1937
ignored ps-convert
64dd0d2
@Chuan1937

Chuan1937 commented Jan 12, 2026

Copy link
Copy Markdown
Member Author

Thanks @seisman for the guidance, I have revised it according to Solution 1.

All reactions

Sorry, something went wrong.

Uh oh!

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

@seisman

seisman commented Jan 13, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Member

@Chuan1937 Please make changes following the discussions in #4256. Let me know if anything is unclear.

Chuan1937 reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

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

@seisman seisman added this to the 0.19.0 milestone Jan 13, 2026
@seisman seisman changed the title fix ps-convert settings Add a note/warning that PS_CONVERT is not supported Jan 13, 2026
@seisman seisman added maintenance Boring but important stuff for the core devs enhancement Improving an existing feature and removed maintenance Boring but important stuff for the core devs labels Jan 13, 2026
@Chuan1937
raise warning when using ps-convert and remove autocomplete
a5d8bd3
seisman
seisman reviewed Jan 13, 2026
View reviewed changes
Comment thread pygmt/src/config.py Resolved

Uh oh!

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

Comment thread pygmt/src/config.py Resolved

Uh oh!

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

Xingchen He and others added 3 commits January 13, 2026 11:35
Xingchen He @seisman
Update pygmt/src/config.py
380b1a7
Co-authored-by: Dongdong Tian <[email protected]>
Xingchen He @seisman
Update pygmt/src/config.py
663f502
Co-authored-by: Dongdong Tian <[email protected]>
@Chuan1937
fix make check limit
2803208
seisman
seisman reviewed Jan 13, 2026
View reviewed changes
Comment thread pygmt/src/config.py Resolved

Uh oh!

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

seisman
seisman reviewed Jan 13, 2026
View reviewed changes
Comment thread pygmt/src/config.py Resolved

Uh oh!

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

Xingchen He and others added 2 commits January 13, 2026 15:48
Xingchen He @seisman
Update pygmt/src/config.py
df162fa
Co-authored-by: Dongdong Tian <[email protected]>
@Chuan1937
add a test for ps-convert
0a8f751
seisman
seisman reviewed Jan 13, 2026
View reviewed changes
Comment thread pygmt/tests/test_config_ps_convert.py Resolved

Uh oh!

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

@Chuan1937
add a test for ps-convert in test_config.py
ca6c988
seisman
seisman approved these changes Jan 13, 2026
View reviewed changes
@seisman seisman added the final review call This PR requires final review and approval from a second reviewer label Jan 13, 2026
@seisman

seisman commented Jan 13, 2026

Copy link
Copy Markdown
Member

Looks good to me. Since it's an enhacenement, not a new feature, I will merge it in 24 hours if no further comments.

Chuan1937 reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

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

yvonnefroehlich
yvonnefroehlich approved these changes Jan 13, 2026
View reviewed changes
Comment thread pygmt/src/config.py Resolved

Uh oh!

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

Comment thread pygmt/src/config.py Resolved

Uh oh!

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

yvonnefroehlich
yvonnefroehlich reviewed Jan 13, 2026
View reviewed changes
Comment thread pygmt/tests/test_config.py Resolved

Uh oh!

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

Xingchen He and others added 4 commits January 13, 2026 19:47
Xingchen He @yvonnefroehlich
Update pygmt/src/config.py
2ab0a20
Co-authored-by: Yvonne Fröhlich <[email protected]>
Xingchen He @yvonnefroehlich
Update pygmt/src/config.py
88d9d7f
Co-authored-by: Yvonne Fröhlich <[email protected]>
Xingchen He @yvonnefroehlich
Update pygmt/tests/test_config.py
fe93f17
Co-authored-by: Yvonne Fröhlich <[email protected]>
Xingchen He
Merge branch 'main' into fix-psconvert
be17f60
seisman
seisman reviewed Jan 13, 2026
View reviewed changes
Comment thread pygmt/src/config.py Resolved

Uh oh!

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

@seisman
Fix a typo
24ba94d
@seisman
seisman merged commit cb42a3c into GenericMappingTools:main Jan 13, 2026
@seisman seisman removed the final review call This PR requires final review and approval from a second reviewer label Jan 13, 2026
@Chuan1937
Chuan1937 deleted the fix-psconvert branch January 14, 2026 06:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@seisman seisman seisman approved these changes
@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

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.

PS_CONVERT has no effect when using Figure.show/Figure.savefig/Figure.psconvert

Uh oh!

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

4 participants

@Chuan1937 @seisman @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 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.