Skip to content

Commit e1c8964

Browse files
Fixes for hexagon shape
1 parent d60a057 commit e1c8964

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

pygmt/src/pygmtlogo.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,10 @@ def _create_logo( # noqa: PLR0915
7171
symbol = "c"
7272
size_shape = r0 + r1
7373
hex_factor = 1
74-
vline_y = r0
7574
case "hexagon":
7675
symbol = "h"
77-
size_shape = (r0 + 0.35) * 2
76+
size_shape = (r0 + 0.34) * 2
7877
hex_factor = 1.1
79-
vline_y = r0 * 0.93
8078

8179
# Define wordmark
8280
font = "AvantGarde-Book"
@@ -172,7 +170,7 @@ def _vline_coords(gap=0):
172170
Coordinates for vertical lines.
173171
"""
174172
x0 = (thick_gt + gap) / 2
175-
return {"x": [-x0, -x0, x0, x0], "y": [vline_y, r3, r3, vline_y]}
173+
return {"x": [-x0, -x0, x0, x0], "y": [r0, r3, r3, r0]}
176174

177175
fig = pygmt.Figure()
178176
fig.basemap(region=region, projection=proj, perspective=perspective, frame="none")
@@ -192,6 +190,7 @@ def _vline_coords(gap=0):
192190
pen=f"{thick_comp}c,{yellow}",
193191
style="v0c+s",
194192
perspective=True,
193+
no_clip=True,
195194
)
196195

197196
# Shape outline (over ends of compass lines for hexagon shape)

0 commit comments

Comments
 (0)