Skip to content

Commit 5c7d482

Browse files
authored
Figure.pygmtlogo: Increase the gap around the vertical red line and arrow (#4635)
1 parent 7581ebf commit 5c7d482

3 files changed

Lines changed: 14 additions & 14 deletions

File tree

pygmt/src/pygmtlogo.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -139,14 +139,21 @@ def _letter_t_coords():
139139
mask = np.abs(t_x) <= (thick_gap + r4) / 2
140140
return {"x": t_x[mask], "y": t_y[mask]}
141141

142+
def _vline_coords():
143+
"""
144+
Coordinates for the vertical line at the top.
145+
"""
146+
x0 = thick_gt / 2
147+
return {"x": [-x0, -x0, x0, x0], "y": [r0, r3, r3, r0]}
148+
142149
def _bg_arrow_coords():
143150
"""Coordinates for the background arrow."""
144151
# x0, y0 is the same as in _letter_t_coords().
145152
x0 = thick_gt / 2
146153
y0 = 1.8 * x0 * np.sqrt(3)
147-
# The background arrow is thick_comp wider than the letter T.
148-
x1 = x0 + thick_comp / 2.0 # Half-width of the arrow tail
149-
x2 = 2 * x0 + thick_comp / np.sqrt(3) # Half-width of the arrow head
154+
# The background arrow 2*thick_gap wider than the letter T.
155+
x1 = x0 + thick_gap # Half-width of the arrow tail
156+
x2 = 2 * (x0 + thick_gap / np.sqrt(3)) # Half-width of the arrow head
150157

151158
arrow_x = [-x1, -x1, -x2, -(x2 - 2 * x0), (x2 - 2 * x0), x2, x1, x1]
152159
arrow_y = [r0, -r0 + y0, -r0 + y0, -r0, -r0, -r0 + y0, -r0 + y0, r0]
@@ -169,13 +176,6 @@ def _compass_lines():
169176
(x1, -y1, x2, -y2), # lower right
170177
]
171178

172-
def _vline_coords():
173-
"""
174-
Coordinates for the vertical line at the top.
175-
"""
176-
x0 = thick_gt / 2
177-
return {"x": [-x0, -x0, x0, x0], "y": [r0, r3, r3, r0]}
178-
179179
fig = Figure()
180180
fig.basemap(region=region, projection=proj, perspective=perspective, frame="none")
181181

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
outs:
2-
- md5: 2d9fd4fdb1189514d374500d5f4add73
3-
size: 149683
2+
- md5: 459b74dee35adcb7f3519269ad49668d
3+
size: 149831
44
hash: md5
55
path: test_pygmtlogo_circle_design.png
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
outs:
2-
- md5: dcb54b2c28e02c4fc83d38278b2700c6
3-
size: 31454
2+
- md5: 781ac55a32194d2818a1d96ab2d32727
3+
size: 31485
44
hash: md5
55
path: test_pygmtlogo_circle_no_wordmark.png

0 commit comments

Comments
 (0)