Skip to content

POC: DOC: Add note for need to call pygmt.config after setting up pygmt.Figure instance#4735

Draft
yvonnefroehlich wants to merge 5 commits into
mainfrom
add-note-config
Draft

POC: DOC: Add note for need to call pygmt.config after setting up pygmt.Figure instance#4735
yvonnefroehlich wants to merge 5 commits into
mainfrom
add-note-config

Conversation

@yvonnefroehlich

@yvonnefroehlich yvonnefroehlich commented Jul 19, 2026

Copy link
Copy Markdown
Member

Description of proposed changes

Related to several issues, e.g., #733, #4732.

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

Guidelines

Slash Commands

You can write slash commands (/command) in the first line of a comment to perform
specific operations. Supported slash command is:

  • /format: automatically format and lint the code

@yvonnefroehlich yvonnefroehlich added this to the 0.20.0 milestone Jul 19, 2026
@yvonnefroehlich yvonnefroehlich self-assigned this Jul 19, 2026
@yvonnefroehlich yvonnefroehlich added the documentation Improvements or additions to documentation label Jul 19, 2026
@yvonnefroehlich yvonnefroehlich changed the title POC: ODC: Add note for need to call pygmt.config after setting up pygmt.Figure instance POC: DOC: Add note for need to call pygmt.config after setting up pygmt.Figure instance Jul 19, 2026
@yvonnefroehlich
yvonnefroehlich marked this pull request as draft July 19, 2026 11:53
Comment thread pygmt/src/config.py Outdated
.. note::
Currently, :class:`pygmt.config` needs to be called **after** setting

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, the note only make sense when multiple Figure instances are created in one session.

@seisman seisman added the needs review This PR has higher priority and needs review. label Jul 20, 2026
Comment thread pygmt/src/config.py
.. note::
For GMT defaults to adjust the figure appearance, e.g., the font size,
:class:`pygmt.config` needs to be called **after** setting up the

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe just say "it's recommended to call pygmt.config after ..."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation needs review This PR has higher priority and needs review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants