Skip to content

Commit 8f9f8d0

Browse files
Use 'thick_shape" for drawing outline for black-white dark case
Co-authored-by: Yvonne Fröhlich <94163266+yvonnefroehlich@users.noreply.github.com>
1 parent 5989fad commit 8f9f8d0

1 file changed

Lines changed: 12 additions & 14 deletions

File tree

pygmt/src/pygmtlogo.py

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -66,19 +66,17 @@ def _create_logo( # noqa: PLR0915
6666
color_gmt = color_light
6767

6868
# Define shape
69-
match shape:
70-
case "circle":
71-
symbol = "c" # circle
72-
size_shape = r0 + r1 # radius
73-
size_shape_add = r0 - r1
74-
vline_y = r0
75-
arrow_y = -r0
76-
case "hexagon":
77-
symbol = "h" # hexagon
78-
size_shape = r0 * 2 # diameter
79-
size_shape_add = 0.6
80-
vline_y = r0 * 0.93
81-
arrow_y = -r0 * 0.93
69+
match shape:
70+
case "circle":
71+
symbol = "c"
72+
size_shape = r0 + r1
73+
vline_y = r0
74+
arrow_y = -r0
75+
case "hexagon":
76+
symbol = "h"
77+
size_shape = r0 * 2
78+
vline_y = r0 * 0.93
79+
arrow_y = -r0 * 0.93
8280

8381
# Define wordmark
8482
font = "AvantGarde-Book"
@@ -212,7 +210,7 @@ def _vline_coords(gap=0):
212210
fig.plot(
213211
x=0,
214212
y=0,
215-
style=f"{symbol}{size_shape + size_shape_add}c",
213+
style=f"{symbol}{size_shape + thick_shape}c",
216214
pen=f"1p,{color_dark}",
217215
perspective=True,
218216
no_clip=True,

0 commit comments

Comments
 (0)