Skip to content

Migrate the frame setting in the first figure tutorial - #4585

Merged
seisman merged 4 commits into
mainfrom
codex/migrate-first-figure-frame
Apr 15, 2026
Merged

seisman merged 4 commits into
mainfrom
codex/migrate-first-figure-frame

Conversation

@seisman

@seisman seisman commented Apr 14, 2026 •

Copy link
Copy Markdown
Member

Summary

  • migrate examples/intro/01_first_figure.py to use Axis and Frame for frame examples
  • update the tutorial text to describe the structured frame API instead of legacy frame strings and lists

Preview: https://pygmt-dev--4585.org.readthedocs.build/en/4585/intro/01_first_figure.html

@seisman seisman added maintenance Boring but important stuff for the core devs skip-changelog Skip adding Pull Request to changelog labels Apr 14, 2026
@seisman seisman added this to the 0.19.0 milestone Apr 14, 2026
water="lightblue",
projection="M10c",
frame="a",
frame=True,

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I feel using frame=True in the first example makes more sense than the much complicated frame=Axis(annot=True).

water="lightblue",
projection="M10c",
frame=["a", "+tMaine"],
frame=Frame(title="Maine"),

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Same here, make the frame setting as simple as possible.

@seisman seisman added the needs review This PR has higher priority and needs review. label Apr 14, 2026
@seisman seisman changed the title Migrate first figure example frame Migrate the frame setting in the first figure tutorial Apr 14, 2026
@seisman
seisman requested a review from yvonnefroehlich April 14, 2026 08:32
@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 Apr 15, 2026
@seisman seisman removed the final review call This PR requires final review and approval from a second reviewer label Apr 15, 2026
@seisman
seisman merged commit b2374c5 into main Apr 15, 2026
8 of 9 checks passed
@seisman
seisman deleted the codex/migrate-first-figure-frame branch April 15, 2026 13:00
@yvonnefroehlich

Copy link
Copy Markdown
Member

I am sorry for being too late with reviewing this OR. But it looks good!

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

Labels

maintenance Boring but important stuff for the core devs skip-changelog Skip adding Pull Request to changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants