Skip to content

Commit 4a522c6

Browse files
TEST: Adjustments for hexagon shape size of r0
Co-authored-by: Yvonne Fröhlich <94163266+yvonnefroehlich@users.noreply.github.com>
1 parent 6ad9690 commit 4a522c6

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

pygmt/src/pygmtlogo.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,10 @@ def _create_logo( # noqa: PLR0915
7575
arrow_y = -r0
7676
case "hexagon":
7777
symbol = "h" # hexagon
78-
size_shape = (r0 + 0.3) * 2 # diameter
78+
size_shape = r0 * 2 # diameter
7979
size_shape_add = 0.6
80-
vline_y = r0 * 0.99
81-
arrow_y = -r0 * 0.99
80+
vline_y = r0 * 0.93
81+
arrow_y = -r0 * 0.93
8282

8383
# Define wordmark
8484
font = "AvantGarde-Book"
@@ -138,7 +138,7 @@ def _compass_lines():
138138
Coordinates of compass lines.
139139
"""
140140
sqrt2 = np.sqrt(2) / 2
141-
x1, x2, x3 = r0 * sqrt2, r3 * sqrt2, (r2 + (r3 - r4)) * sqrt2
141+
x1, x2, x3 = r1 * sqrt2, r3 * sqrt2, (r2 + (r3 - r4)) * sqrt2
142142
# Coordinates of vectors in the format of (x_start, y_start, x_end, y_end).
143143
return [
144144
(-r0, 0, -r3, 0), # left horizontal

0 commit comments

Comments
 (0)