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 — Tutorial "Plotting data points": Add legend for size coding by yvonnefroehlich · Pull Request #4214 · GenericMappingTools/pygmt

Conversation

@yvonnefroehlich

@yvonnefroehlich yvonnefroehlich commented Nov 16, 2025 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Member

Description of proposed changes

So far we do not add a legend for the size-coding in the tutorial "Plotting data points". This PR extends the tutorial by adding such a legend via an io.StringIO object. There is also issue #3675 by @maxrjones suggesting to add an example showing how to create a legend for size-coding, as this can not be done automatically in GMT.

Fixes #

Preview: https://pygmt-dev--4214.org.readthedocs.build/en/4214/tutorials/basics/plot.html

Guidelines

  • General Guidelines for Pull Request
  • Guidelines for Contributing Documentation
  • Guidelines for Contributing Code

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

Sorry, something went wrong.

Uh oh!

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

All reactions
@yvonnefroehlich
Add legend for size-coding in scatter plot
08441fb
@yvonnefroehlich yvonnefroehlich added this to the 0.18.0 milestone Nov 16, 2025
@yvonnefroehlich yvonnefroehlich self-assigned this Nov 16, 2025
@yvonnefroehlich yvonnefroehlich added documentation Improvements or additions to documentation enhancement Improving an existing feature labels Nov 16, 2025
@seisman seisman removed the enhancement Improving an existing feature label Nov 17, 2025
seisman
seisman approved these changes Nov 17, 2025
View reviewed changes

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

Looks good to me.

If I understand it correctly, issue #3675 can be closed?

Sorry, something went wrong.

Uh oh!

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

All reactions
@seisman seisman added the final review call This PR requires final review and approval from a second reviewer label Nov 17, 2025
michaelgrund
michaelgrund approved these changes Nov 17, 2025
View reviewed changes
@seisman seisman removed the final review call This PR requires final review and approval from a second reviewer label Nov 17, 2025
@seisman seisman changed the title DOC/Tutorial "Plotting data points": Add legend for size coding Tutorial "Plotting data points": Add legend for size coding Nov 17, 2025
@seisman
seisman merged commit 9b11099 into main Nov 17, 2025
@seisman
seisman deleted the add-tut-plot-legend branch November 17, 2025 07:36
@yvonnefroehlich

yvonnefroehlich commented Nov 17, 2025

Copy link
Copy Markdown
Member Author

If I understand it correctly, issue #3675 can be closed?

As PyGMT allows creating a legend via an io.StringIO object, I think including a size-coding legend in this tutorial is fine, and no separate example is needed.

All reactions

Sorry, something went wrong.

Uh oh!

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

@seisman seisman mentioned this pull request Nov 18, 2025
Gallery example for symbol magnitude legend #3675
Closed
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
@michaelgrund michaelgrund michaelgrund approved these changes

Uh oh!

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

Assignees

@yvonnefroehlich yvonnefroehlich

Labels

documentation Improvements or additions to documentation

Projects

None yet

Milestone

0.18.0

Development

Successfully merging this pull request may close these issues.

Uh oh!

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

3 participants

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