@@ -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
0 commit comments