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 — DOC: Add Technical Reference page for justification codes by yvonnefroehlich · Pull Request #4028 · GenericMappingTools/pygmt

Conversation

@yvonnefroehlich

@yvonnefroehlich yvonnefroehlich commented Jul 29, 2025 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Member

Description of proposed changes

Add a Technical Reference page for the GMT justification codes for plot embellishments.

Fixes #4027

Preview
Technical Reference

  • https://pygmt-dev--4028.org.readthedocs.build/en/4028/techref/index.html
  • https://pygmt-dev--4028.org.readthedocs.build/en/4028/techref/justification_codes.html

Gallery examples and tutorials

  • https://pygmt-dev--4028.org.readthedocs.build/en/4028/api/generated/pygmt.Figure.colorbar.html
  • https://pygmt-dev--4028.org.readthedocs.build/en/4028/api/generated/pygmt.Figure.inset.html
  • https://pygmt-dev--4028.org.readthedocs.build/en/4028/api/generated/pygmt.Figure.text.html
  • https://pygmt-dev--4028.org.readthedocs.build/en/4028/gallery/embellishments/colorbar.html
  • https://pygmt-dev--4028.org.readthedocs.build/en/4028/gallery/embellishments/scalebar.html
  • https://pygmt-dev--4028.org.readthedocs.build/en/4028/tutorials/basics/text.html#adjusting-the-text-label
  • https://pygmt-dev--4028.org.readthedocs.build/en/4028/tutorials/basics/text.html#using-the-position-parameter

Reminders

  • Run make format and make check to make sure the code follows the style guide.
  • Add tests for new features or tests that would have caught the bug that you're fixing.
  • Add new public functions/methods/classes to doc/api/index.rst.
  • Write detailed docstrings for all functions/methods.
  • If wrapping a new module, open a 'Wrap new GMT module' issue and submit reasonably-sized PRs.
  • If adding new functionality, add an example to docstrings or tutorials.

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 first ideas for Technical Reference page for justification codes
176fcab
@yvonnefroehlich yvonnefroehlich added this to the 0.17.0 milestone Jul 29, 2025
@yvonnefroehlich yvonnefroehlich added the documentation Improvements or additions to documentation label Jul 29, 2025
@yvonnefroehlich
Remove execution permission
34d4409
@yvonnefroehlich
yvonnefroehlich marked this pull request as draft July 29, 2025 18:24
@yvonnefroehlich
Update
9e493a2
@seisman

seisman commented Jul 30, 2025

Copy link
Copy Markdown
Member

Please note that justification codes are not only used when plotting embellishments, but also in Figure.text, Figure.meca, Figure.colorbar and more. So, we should have one page focusing on justification codes. We may extend the page and add a separata page for reference/anchor points later.

michaelgrund reacted with thumbs up emoji yvonnefroehlich reacted with eyes emoji
All reactions
  • 👍 1 reaction
  • 👀 1 reaction

Sorry, something went wrong.

Uh oh!

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

michaelgrund
michaelgrund reviewed Jul 30, 2025
View reviewed changes
Comment thread doc/techref/justification_codes.md Resolved

Uh oh!

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

Comment thread doc/techref/justification_codes.md Resolved

Uh oh!

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

@yvonnefroehlich yvonnefroehlich changed the title DOC: Add Technical Reference page for justification codes (reference and anchor points) WIP: DOC: Add Technical Reference page for justification codes (reference and anchor points) Jul 30, 2025
yvonnefroehlich added 2 commits July 30, 2025 11:54
@yvonnefroehlich
Focus on two-letter codes
2a222cf
@yvonnefroehlich
Adjust docs
e591ac2
@yvonnefroehlich

yvonnefroehlich commented Jul 30, 2025

Copy link
Copy Markdown
Member Author

Please note that justification codes are not only used when plotting embellishments, but also in Figure.text, Figure.meca, Figure.colorbar and more. So, we should have one page focusing on justification codes. We may extend the page and add a separata page for reference/anchor points later.

Hm. I removed the contents related reference/anchor points. However, I am now a bit unsure what to add more to this Technical Reference page. Or do we only want the letters for vertical (TMB) and horizontal (LCR)?

All reactions

Sorry, something went wrong.

Uh oh!

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

@yvonnefroehlich
Merge branch 'main' into add-techref-justify
9e86f47
@seisman

seisman commented Jul 30, 2025

Copy link
Copy Markdown
Member

What about adding figures like https://docs.generic-mapping-tools.org/dev/reference/features.html#reference-and-anchor-point-specification or https://docs.gmt-china.org/latest/basis/anchor/?

yvonnefroehlich reacted with eyes emoji
All reactions
  • 👀 1 reaction

Sorry, something went wrong.

Uh oh!

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

yvonnefroehlich added 2 commits August 1, 2025 15:35
@yvonnefroehlich
Add code for sektch to explain justification codes
80c3400
@yvonnefroehlich
Merge remote-tracking branch 'origin/add-techref-justify' into add-te…
f8487d1
…chref-justify
@yvonnefroehlich yvonnefroehlich changed the title WIP: DOC: Add Technical Reference page for justification codes (reference and anchor points) WIP: DOC: Add Technical Reference page for justification codes Aug 1, 2025
yvonnefroehlich and others added 13 commits August 1, 2025 16:39
@yvonnefroehlich
Split script
e8e2441
@yvonnefroehlich
Merge branch 'main' into add-techref-justify
83ba9e4
@yvonnefroehlich
Add sketch for reference and anchor point
14234fc
@yvonnefroehlich
Adjust cmap for better contrast
b119946
@yvonnefroehlich
Adjust cmap for better contrast
06fadae
@yvonnefroehlich
Adjust font size
5bd36a3
@yvonnefroehlich
No equal offsets in x and y directions
839054b
@yvonnefroehlich
Use consistent order in justification codes
4267fe3
@yvonnefroehlich
Merge branch 'main' into add-techref-justify
cad5a02
@yvonnefroehlich
Improve docs
b59e858
@yvonnefroehlich
Try defining variables ones
29e07bd
@yvonnefroehlich
Add docs
0303e69
@yvonnefroehlich
Move content for reference and anchor point to seperate file
e1656bb
yvonnefroehlich and others added 10 commits August 23, 2025 12:30
@yvonnefroehlich
Merge branch 'main' into add-techref-justify
9c6275b
@yvonnefroehlich
Merge branch 'main' into add-techref-justify
2e22067
@yvonnefroehlich
Link to techref in docs
239036f
@yvonnefroehlich
Fix indent
38d8c85
@yvonnefroehlich
Mention techref in gallery examples and tutorials
e8b8fd7
@yvonnefroehlich
Remove blank line
0243529
@yvonnefroehlich
Mention techref in docs
3dbcacc
@yvonnefroehlich
Merge branch 'main' into add-techref-justify
4322793
@yvonnefroehlich
Merge branch 'main' into add-techref-justify
1f0318c
@yvonnefroehlich
Improve formulation
6fbefa3
seisman
seisman reviewed Sep 2, 2025
View reviewed changes
Comment thread doc/techref/justification_codes.md Resolved

Uh oh!

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

Comment thread doc/techref/justification_codes.md Resolved

Uh oh!

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

Comment thread doc/techref/justification_codes.md Resolved

Uh oh!

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

seisman
seisman reviewed Sep 2, 2025
View reviewed changes
Comment thread doc/techref/justification_codes.md Resolved

Uh oh!

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

yvonnefroehlich and others added 5 commits September 2, 2025 15:10
@yvonnefroehlich @seisman
Add justification code example
6e79fcb
Co-authored-by: Dongdong Tian <[email protected]>
@yvonnefroehlich @seisman
Highlight points in bold
0f1120e
Co-authored-by: Dongdong Tian <[email protected]>
@yvonnefroehlich @seisman
Improve formulation
d37f3dc
Co-authored-by: Dongdong Tian <[email protected]>
@yvonnefroehlich @seisman
No need to escape
10d94ea
Co-authored-by: Dongdong Tian <[email protected]>
@yvonnefroehlich
Add blank line
a06ad41
seisman
seisman reviewed Sep 2, 2025
View reviewed changes
Comment thread doc/techref/justification_codes.md Resolved

Uh oh!

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

seisman
seisman reviewed Sep 2, 2025
View reviewed changes
Comment thread doc/techref/justification_codes.md Resolved

Uh oh!

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

yvonnefroehlich and others added 5 commits September 2, 2025 23:12
@yvonnefroehlich
Add blank line
b6cab8c
@yvonnefroehlich
Use line length
e8d0602
@yvonnefroehlich @seisman
Add blank line
dd648cf
Co-authored-by: Dongdong Tian <[email protected]>
@yvonnefroehlich @seisman
Add more information
a930970
Co-authored-by: Dongdong Tian <[email protected]>
@yvonnefroehlich
Remove one blank line
10cd6f3
seisman
seisman approved these changes Sep 3, 2025
View reviewed changes
@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. final review call This PR requires final review and approval from a second reviewer labels Sep 3, 2025
@seisman
seisman merged commit a9630ce into main Sep 3, 2025
@seisman
seisman deleted the add-techref-justify branch September 3, 2025 09:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@michaelgrund michaelgrund michaelgrund left review comments
@seisman seisman seisman 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.17.0

Development

Successfully merging this pull request may close these issues.

Add documentation about anchor code to the Technical Reference section

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.