Skip to content

Commit 23bed9a

Browse files
Merge remote-tracking branch 'origin/code-pygmt-logo' into code-pygmt-logo
2 parents e1c8964 + 6b85259 commit 23bed9a

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

pygmt/src/pygmtlogo.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def _letter_m_coords():
120120
return {"x": m_x, "y": m_y}
121121

122122
def _letter_t_coords():
123-
"""Coordinates of the top curved horizontal line for letter T."""
123+
"""Coordinates for letter T."""
124124
outer_angles = np.deg2rad(np.arange(240, 300, 0.5))
125125
inner_angles = outer_angles[::-1]
126126
arc_outer_x, arc_outer_y = np.cos(outer_angles) * r2, np.sin(outer_angles) * r2
@@ -197,17 +197,16 @@ def _vline_coords(gap=0):
197197
fig.plot(x=0, y=0, pen=f"{thick_shape}c,{blue}", **args_shape)
198198
# fig.show()
199199

200+
# Background vertical line and arrow head
201+
fig.plot(data=_vline_coords(gap=thick_comp), fill=color_bg, perspective=True)
200202
fig.plot(data=_bg_arrow_coords(), fill=color_bg, perspective=True)
201203

202-
# Letter G
204+
# Letters G, M, and T
203205
fig.plot(data=_letter_g_coords(), fill=red, perspective=True)
204-
# Letter M
205206
fig.plot(data=_letter_m_coords(), fill=red, perspective=True)
206-
# Letter T: red curved horizontal line
207207
fig.plot(data=_letter_t_coords(), fill=red, perspective=True)
208208

209-
# Upper vertical lines
210-
fig.plot(data=_vline_coords(gap=thick_comp), fill=color_bg, perspective=True)
209+
# Upper vertical line
211210
fig.plot(data=_vline_coords(), fill=red, perspective=True)
212211

213212
# Outline around the shape for black and white color with dark theme

0 commit comments

Comments
 (0)