Skip to content

Commit 07bfe56

Browse files
committed
Figure.pygmtlogo: Implement the hexagonal logo
1 parent 71f66dd commit 07bfe56

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

pygmt/src/pygmtlogo.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,8 @@ def _bg_arrow_coords():
166166

167167
def _compass_lines():
168168
"""Coordinates of compass lines."""
169-
angle = np.deg2rad(45.0) # Angle of diagonal compass lines
169+
# Angle of diagonal compass lines
170+
angle = np.deg2rad({"circle": 45.0, "hexagon": 30.0}[shape])
170171
sinx, cosx = np.sin(angle), np.cos(angle)
171172

172173
x1, x2, x3 = r0 * sinx, r3 * sinx, (r2 + (r3 - r4)) * sinx

0 commit comments

Comments
 (0)