Skip to content

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

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

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

Conversation

@seisman
Copy link
Copy Markdown
Member

@seisman seisman commented May 7, 2026

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

@seisman seisman added the enhancement Improving an existing feature label May 7, 2026
@seisman seisman added this to the 0.19.0 milestone May 7, 2026
@seisman seisman added the needs review This PR has higher priority and needs review. label May 7, 2026
@seisman seisman requested a review from yvonnefroehlich May 7, 2026 09:34
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 7, 2026

Summary of changed images

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

Status Path
modified pygmt/tests/baseline/test_pygmtlogo_circle_no_wordmark.png

Image diff(s)

Details

Added images

Modified images

Path Old New
test_pygmtlogo_circle_no_wordmark.png

Report last updated at commit f7344d2

@seisman seisman force-pushed the pygmtlogo-circle-blackwhite branch from 17f6c86 to f7344d2 Compare May 7, 2026 09:38
Comment thread pygmt/src/pygmtlogo.py
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 Author

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.

Copy link
Copy Markdown
Member

@yvonnefroehlich yvonnefroehlich left a comment

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 ...".

@seisman seisman changed the title Figure.pygmtlogo: Implement the circular, black/white PyGMT logo Figure.pygmtlogo: Add test for the circular, black/white PyGMT logo May 7, 2026
@seisman seisman changed the title Figure.pygmtlogo: Add test for the circular, black/white PyGMT logo Figure.pygmtlogo: Add tests for the circular, black/white PyGMT logo May 7, 2026
@seisman
Copy link
Copy Markdown
Member Author

seisman commented May 7, 2026

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

Done.

Comment thread pygmt/src/pygmtlogo.py
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.

Comment thread pygmt/src/pygmtlogo.py
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
Member Author

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/3 thick_gap = thick_comp/2.0
logo1 logo2

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
Member Author

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
Member Author

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 pygmtlogo May 7, 2026
16 of 20 checks passed
@seisman seisman deleted the pygmtlogo-circle-blackwhite branch May 7, 2026 22:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Improving an existing feature needs review This PR has higher priority and needs review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants