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 — Implement the frame='none' syntax for no frames by seisman · Pull Request #4404 · GenericMappingTools/pygmt

Conversation

@seisman

@seisman seisman commented Feb 10, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Member

Closes #4403.

Preview: https://pygmt-dev--4404.org.readthedocs.build/en/4404/api/generated/pygmt.Figure.basemap.html#pygmt.Figure.basemap

Sorry, something went wrong.

Uh oh!

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

All reactions
seisman added 6 commits February 10, 2026 14:30
@seisman
Implement the frame='none' syntax for no-frame plotting
e61d4ef
@seisman
Test the new feature
1236257
@seisman
Add a visual test for both basemap and colorbar
07b7de5
@seisman
Use the new syntax in gallery example
3d0566c
@seisman
Update the type hints for the frame parameter
206af0b
@seisman
Update docstrings
626c0cc
@seisman seisman added this to the 0.19.0 milestone Feb 10, 2026
@seisman seisman added the enhancement Improving an existing feature label Feb 10, 2026
@github-actions

github-actions Bot commented Feb 10, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

Summary of changed images

This is an auto-generated report of images that have changed on the DVC remote

Status Path
added pygmt/tests/baseline/test_basemap_frame_none.png

Image diff(s)

Details

Added images

  • test_basemap_frame_none.png

Modified images

Path Old New

Report last updated at commit f34f44c

All reactions

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 Feb 10, 2026
@seisman
seisman requested a review from Copilot February 10, 2026 07:09
Copilot started reviewing on behalf of seisman February 10, 2026 07:09
View session
Copilot AI reviewed Feb 10, 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

Adds a Pythonic frame="none" option across PyGMT plotting APIs to request “no frame” behavior by translating it to GMT’s -B+n under the hood.

Changes:

  • Map frame="none" to the GMT -B+n syntax in the alias system (common -B handling).
  • Expand frame type annotations across affected plotting functions to include Literal["none"].
  • Add/extend tests, baseline image, and update docs/examples to demonstrate the new syntax.

Reviewed changes

Copilot reviewed 27 out of 27 changed files in this pull request and generated no comments.

Show a summary per file
File Description
pygmt/alias.py Implements the frame="none" → +n mapping for common -B handling.
pygmt/helpers/decorators.py Updates common frame docstring snippet to document frame="none".
pygmt/src/basemap.py Updates frame type hint to accept "none".
pygmt/src/coast.py Updates frame type hint to accept "none".
pygmt/src/colorbar.py Updates frame type hint and documents frame="none" behavior.
pygmt/src/contour.py Updates frame type hint to accept "none".
pygmt/src/grdcontour.py Updates frame type hint to accept "none".
pygmt/src/grdimage.py Updates frame type hint to accept "none".
pygmt/src/grdview.py Updates frame type hint to accept "none".
pygmt/src/histogram.py Updates frame type hint to accept "none".
pygmt/src/image.py Updates frame type hint to accept "none".
pygmt/src/legend.py Updates frame type hint to accept "none".
pygmt/src/meca.py Updates frame type hint to accept "none".
pygmt/src/plot.py Updates frame type hint to accept "none".
pygmt/src/plot3d.py Updates frame type hint to accept "none".
pygmt/src/rose.py Updates frame type hint to accept "none".
pygmt/src/solar.py Updates frame type hint to accept "none".
pygmt/src/subplot.py Updates frame type hint to accept "none".
pygmt/src/ternary.py Updates frame type hint to accept "none".
pygmt/src/text.py Updates frame type hint to accept "none".
pygmt/src/tilemap.py Updates frame type hint to accept "none".
pygmt/src/velo.py Updates frame type hint to accept "none".
pygmt/src/wiggle.py Updates frame type hint to accept "none".
pygmt/tests/test_alias_system.py Adds coverage asserting frame="none" becomes -B+n via common-parameter aliasing.
pygmt/tests/test_basemap.py Adds an image-comparison test covering frame="none" in basemap and colorbar.
pygmt/tests/baseline/test_basemap_frame_none.png.dvc Adds the baseline artifact metadata for the new image test.
examples/gallery/maps/choropleth_map.py Updates an example to use frame="none" instead of raw "+n".

💡 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
@seisman seisman mentioned this pull request Feb 10, 2026
Figure 6: Use the new frame='none' syntax GenericMappingTools/pygmt-paper-figures#33
Merged
@seisman
Merge branch 'main' into frame/none
3fe7c7b
@seisman seisman added the high-priority label Feb 10, 2026
@seisman seisman mentioned this pull request Feb 10, 2026
Pythonic implemention of the frame="+n" setting #4403
Closed
seisman added 7 commits February 11, 2026 17:18
@seisman
Merge branch 'main' into frame/none
b69b93f
@seisman
Merge remote-tracking branch 'origin/frame/none' into frame/none
d71e57f
@seisman
Improve docstrings
30aef3d
@seisman
Merge branch 'main' into frame/none
a570d3d
@seisman
Merge branch 'main' into frame/none
2f8a3c8
@seisman
Merge branch 'main' into frame/none
9374ef9
@seisman
Merge branch 'main' into frame/none
502a5e5
@seisman
seisman requested a review from a team February 20, 2026 07:46
@seisman

seisman commented Feb 20, 2026

Copy link
Copy Markdown
Member Author

@GenericMappingTools/pygmt-maintainers Please give this PR final reviews. Plan to merge it in three days.

All reactions

Sorry, something went wrong.

Uh oh!

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

@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 Feb 20, 2026
@seisman
Merge branch 'main' into frame/none
f34f44c
@seisman seisman removed the final review call This PR requires final review and approval from a second reviewer label Feb 24, 2026
@seisman seisman removed the high-priority label Feb 24, 2026
@seisman
seisman merged commit 903b8dc into main Feb 24, 2026
19 of 22 checks passed

Uh oh!

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

@seisman
seisman deleted the frame/none branch February 24, 2026 04:29
@seisman seisman mentioned this pull request Apr 15, 2026
Frame/Axis classes for frame settings to wrap GMT's -B option #4588
Closed
27 of 40 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

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.

Pythonic implemention of the frame="+n" setting

Uh oh!

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

2 participants

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