GeezerVison is showing github.com — Tutorial "Plotting data points": Add legend for size coding by yvonnefroehlich · Pull Request #4214 · GenericMappingTools/pygmt
Conversation
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
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.
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.
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
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.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Reviewers
seisman
seisman approved these changes
Uh oh!
There was an error while loading. Please reload this page.
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.