Skip to content

Figure.pygmtlogo: Increase the gap around the vertical red line and arrow - #4635

Merged
seisman merged 2 commits into
pygmtlogofrom
pygmtlogo-gap-thickness
May 11, 2026
Merged

Figure.pygmtlogo: Increase the gap around the vertical red line and arrow#4635
seisman merged 2 commits into
pygmtlogofrom
pygmtlogo-gap-thickness

Conversation

@seisman

@seismanseisman commented May 11, 2026

Copy link
Copy Markdown
Member

Currently, the gap between the vertical red line and the outline shape is set to thick_comp / 2, i.e., half the thickness of the compass line. This value was chosen arbitrarily.

This PR changes the gap from thick_comp / 2 to thick_gap, making it consistent with the gap between the letters G and M. The new gap is slightly larger, making it more visible when logos are small.

After this change, the variable thick_comp is used only for the compass lines.

OldNew
imageimage

@seismanseisman changed the title Figure.pygmtlogo: Increase the gap around the vertical red line and a…Figure.pygmtlogo: Increase the gap around the vertical red line and arrowMay 11, 2026
@seisman
seismanforce-pushed the pygmtlogo-gap-thickness branch from 560cfdb to 03bfd84CompareMay 11, 2026 09:03
@github-actions

github-actionsBot commented May 11, 2026

Copy link
Copy Markdown
Contributor

Summary of changed images

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

StatusPath
modifiedpygmt/tests/baseline/test_pygmtlogo_circle_design.png
modifiedpygmt/tests/baseline/test_pygmtlogo_circle_no_wordmark.png

Image diff(s)

Details

Added images

Modified images

PathOldNew
test_pygmtlogo_circle_design.png
test_pygmtlogo_circle_no_wordmark.png

Report last updated at commit 126b3de

@seisman
seismanforce-pushed the pygmtlogo-gap-thickness branch from 03bfd84 to 126b3deCompareMay 11, 2026 09:13
mask = np.abs(t_x) <= (thick_gap + r4) / 2
return {"x": t_x[mask], "y": t_y[mask]}

def _vline_coords():

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

I moved _vline_coords after _letter_t_coords, because the red vertical line at the top is more related to the letter T.

# x0, y0 is the same as in _letter_t_coords().
x0 = thick_gt / 2
y0 = 1.8 * x0 * np.sqrt(3)
# The background arrow is thick_comp wider than the letter T.

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

Replace thick_comp with thick_gap.

@seismanseisman added the maintenance Boring but important stuff for the core devs label May 11, 2026
@seismanseisman added this to the 0.19.0 milestone May 11, 2026
@seismanseisman added the needs review This PR has higher priority and needs review. label May 11, 2026
@seisman
seisman merged commit 5c7d482 into pygmtlogoMay 11, 2026
18 of 23 checks passed
@seisman
seisman deleted the pygmtlogo-gap-thickness branch May 11, 2026 10:24
@seismanseisman removed the needs review This PR has higher priority and needs review. label May 11, 2026
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenanceBoring but important stuff for the core devs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@seisman@yvonnefroehlich