-
Notifications
You must be signed in to change notification settings - Fork 244
Figure.pygmtlogo: Add tests for the circular, black/white PyGMT logo #4625
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -221,7 +221,7 @@ def _vline_coords(): | |||||||||
| x=0, | ||||||||||
| y=0, | ||||||||||
| style=f"{symbol}{size_shape + thick_shape}c", | ||||||||||
| pen=f"1p,{color_dark}", | ||||||||||
| pen=f"{thick_comp / 2.0}c,{color_bg}", | ||||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Currently,
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I am sorry, the
I believe (did not search in the initial PR) we had
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
This gap between the red line and the blue shape is exactly
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
It makes sense.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
OK. Then it should be fine 🙂. Seems like I confused myself with this radii. |
||||||||||
| perspective=True, | ||||||||||
| no_clip=True, | ||||||||||
| ) | ||||||||||
|
|
||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| outs: | ||
| - md5: b1dee02932b292335cf5f8b95676a258 | ||
| size: 19161 | ||
| - md5: dcb54b2c28e02c4fc83d38278b2700c6 | ||
| size: 31454 | ||
| hash: md5 | ||
| path: test_pygmtlogo_circle_no_wordmark.png |


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.
color_bgis the same ascolor_darkin this case. I prefer not to usecolor_darkbecause it's not used after line 70.The outline thickness
1pis not ideal, because it doesn't scale well withsize. Here I set the thickness to "half of the compass line".Below is the high-resolution version of the black/white dark logo.
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!
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.
But wait maybe better to use
thick_gaphere for consistency.