Skip to content

Commit 22ba385

Browse files
committed
Figure.pygmtlogo: Implement the hexagonal logo
1 parent 4c060ca commit 22ba385

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
@@ -154,7 +154,8 @@ def _bg_arrow_coords():
154154

155155
def _compass_lines():
156156
"""Coordinates of compass lines."""
157-
angle = np.deg2rad(45.0) # Angle of diagonal compass lines
157+
# Angle of diagonal compass lines
158+
angle = np.deg2rad({"circle": 45.0, "hexagon": 30.0}[shape])
158159
sinx, cosx = np.sin(angle), np.cos(angle)
159160

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

0 commit comments

Comments
 (0)