Skip to content

Figure.pygmtlogo: Add tests for the circular, black/white PyGMT logo - #4625

Merged
seisman merged 1 commit into
pygmtlogofrom
pygmtlogo-circle-blackwhite
May 7, 2026
Merged

Figure.pygmtlogo: Add tests for the circular, black/white PyGMT logo#4625
seisman merged 1 commit into
pygmtlogofrom
pygmtlogo-circle-blackwhite

Conversation

@seisman

Copy link
Copy Markdown
Member

Finalize the circular, black/white PyGMT logo for both light/dark themes.

@seismanseisman added the enhancement Improving an existing feature label May 7, 2026
@seismanseisman added this to the 0.19.0 milestone May 7, 2026
@seismanseisman added the needs review This PR has higher priority and needs review. label May 7, 2026
@github-actions

github-actionsBot commented May 7, 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_no_wordmark.png

Image diff(s)

Details

Added images

Modified images

PathOldNew
test_pygmtlogo_circle_no_wordmark.png

Report last updated at commit f7344d2

@seisman
seismanforce-pushed the pygmtlogo-circle-blackwhite branch from 17f6c86 to f7344d2CompareMay 7, 2026 09:38
y=0,
style=f"{symbol}{size_shape + thick_shape}c",
pen=f"1p,{color_dark}",
pen=f"{thick_comp / 2.0}c,{color_bg}",

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.

color_bg is the same as color_dark in this case. I prefer not to use color_dark because it's not used after line 70.

The outline thickness 1p is not ideal, because it doesn't scale well with size. Here I set the thickness to "half of the compass line".

Below is the high-resolution version of the black/white dark logo.

Image

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good!

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

But wait maybe better to use thick_gap here for consistency.

@yvonnefroehlichyvonnefroehlich left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Maybe change the title to: "Figure.pygmtlogo: Test the ...".

@seismanseisman changed the title Figure.pygmtlogo: Implement the circular, black/white PyGMT logoFigure.pygmtlogo: Add test for the circular, black/white PyGMT logoMay 7, 2026
@seismanseisman changed the title Figure.pygmtlogo: Add test for the circular, black/white PyGMT logoFigure.pygmtlogo: Add tests for the circular, black/white PyGMT logoMay 7, 2026
@seisman

Copy link
Copy Markdown
MemberAuthor

Maybe change the title to: "Figure.pygmtlogo: Test the ...".

Done.

y=0,
style=f"{symbol}{size_shape + thick_shape}c",
pen=f"1p,{color_dark}",
pen=f"{thick_comp / 2.0}c,{color_bg}",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

But wait maybe better to use thick_gap here for consistency.

y=0,
style=f"{symbol}{size_shape + thick_shape}c",
pen=f"1p,{color_dark}",
pen=f"{thick_comp / 2.0}c,{color_bg}",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
pen=f"{thick_comp/2.0}c,{color_bg}",
pen=f"{thick_gap}c,{color_bg}",

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.

thick_gap controls the spacing between letter M and G. It is noticeably thicker than the gaps surrounding the vertical red bar at the top.

Currently, thick_comp = thick_shape/3 and thick_gap=thick_shape/4. Actually, I'm thinking about if we should set thick_gap to thick_comp / 2.0.

thick_gap=thick_shape/3thick_gap = thick_comp/2.0
logo1logo2

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

thick_gap controls the spacing between letter M and G. It is noticeably thicker than the gaps surrounding the vertical red bar at the top.

I am sorry, the / 2.0 is still needed.
What I like is that the thickness of this outline is identical to the gap between the red line and red arrowhead and the blue shape.

Currently, thick_comp = thick_shape/3 and thick_gap=thick_shape/4. Actually, I'm thinking about if we should set thick_gap to thick_comp / 2.0.

I believe (did not search in the initial PR) we had thick_gap = thick_comp / 2.0 at the beginning, and I increased the value to make sure the gap between the letters G and M is still clearly visible for a small size of the logo.

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.

What I like is that the thickness of this outline is identical to the gap between the red line and red arrowhead and the blue shape.

This gap between the red line and the blue shape is exactly thick_comp / 2.0, not thick_gap.

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 increased the value to make sure the gap between the letters G and M is still clearly visible for a small size of the logo.

It makes sense.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

What I like is that the thickness of this outline is identical to the gap between the red line and red arrowhead and the blue shape.

This gap between the red line and the blue shape is exactly thick_comp / 2.0, not thick_gap.

OK. Then it should be fine 🙂. Seems like I confused myself with this radii.

@seisman
seisman merged commit c63767f into pygmtlogoMay 7, 2026
16 of 20 checks passed
@seisman
seisman deleted the pygmtlogo-circle-blackwhite branch May 7, 2026 22:39
@seismanseisman removed the needs review This PR has higher priority and needs review. label Jun 26, 2026
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancementImproving an existing feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@seisman@yvonnefroehlich