Skip to content

Commit 5989fad

Browse files
Calculate curved top line of letter T based on South at 270 deg
Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
1 parent 4a522c6 commit 5989fad

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

pygmt/src/pygmtlogo.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,10 @@ def _letter_m_coords():
125125

126126
def _letter_t_coords():
127127
"""Coordinates of the top curved horizontal line for letter T."""
128-
outer_angles = np.deg2rad(np.arange(150, 210, 0.5))
128+
outer_angles = np.deg2rad(np.arange(240, 300, 0.5))
129129
inner_angles = outer_angles[::-1]
130-
t_x = np.concatenate([r2 * np.sin(outer_angles), r3 * np.sin(inner_angles)])
131-
t_y = np.concatenate([r2 * np.cos(outer_angles), r3 * np.cos(inner_angles)])
130+
t_x = np.concatenate([r2 * np.cos(outer_angles), r3 * np.cos(inner_angles)])
131+
t_y = np.concatenate([r2 * np.sin(outer_angles), r3 * np.sin(inner_angles)])
132132
# Ensure the same X-coordinate for the right edge of T and the middle of M.
133133
mask = np.abs(t_x) <= (thick_gap + r4) / 2
134134
return {"x": t_x[mask], "y": t_y[mask]}

0 commit comments

Comments
 (0)