We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 822c6de commit 6c4a365Copy full SHA for 6c4a365
1 file changed
pygmt/src/pygmtlogo.py
@@ -72,11 +72,9 @@ def _create_logo( # noqa: PLR0915
72
case "circle":
73
symbol = "c"
74
size_shape = r0 + r1
75
- hex_factor = 1.0
76
case "hexagon":
77
symbol = "h"
78
- size_shape = (r0 + 0.34) * 2
79
- hex_factor = 1.1
+ size_shape = (r0 + r1) / np.cos(np.deg2rad(30))
80
81
# Define wordmark
82
font = "AvantGarde-Book"
@@ -174,8 +172,8 @@ def _compass_lines():
174
172
y1, y2, y3 = r0 * cosx, r3 * cosx, (r2 + (r3 - r4)) * cosx
175
173
# Coordinates of vectors in the format of (x_start, y_start, x_end, y_end).
176
return [
177
- (-r0 * hex_factor, 0, -r3, 0), # left horizontal
178
- (r3, 0, r0 * hex_factor, 0), # right horizontal
+ (-r0, 0, -r3, 0), # left horizontal
+ (r3, 0, r0, 0), # right horizontal
179
(-x1, y1, -x2, y2), # upper left
180
(-x1, -y1, -x2, -y2), # lower left
181
(x1, y1, x3, y3), # upper right
0 commit comments