Skip to content

Commit 8dd18c3

Browse files
committed
Always show plate limit annotations
Annotations outside of data limits wouldn't show. This commit fix this with the annotation_clip kwarg.
1 parent 5eb1caf commit 8dd18c3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

stagpy/plates.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,14 +128,16 @@ def plot_plate_limits_field(axis, rcmb, ridges, trenches):
128128
xxt = (rcmb + 1.35) * np.cos(trench) # arrow end
129129
yyt = (rcmb + 1.35) * np.sin(trench) # arrow end
130130
axis.annotate('', xy=(xxd, yyd), xytext=(xxt, yyt),
131-
arrowprops=dict(facecolor='red', shrink=0.05))
131+
arrowprops=dict(facecolor='red', shrink=0.05),
132+
annotation_clip=False)
132133
for ridge in ridges:
133134
xxd = (rcmb + 1.02) * np.cos(ridge)
134135
yyd = (rcmb + 1.02) * np.sin(ridge)
135136
xxt = (rcmb + 1.35) * np.cos(ridge)
136137
yyt = (rcmb + 1.35) * np.sin(ridge)
137138
axis.annotate('', xy=(xxd, yyd), xytext=(xxt, yyt),
138-
arrowprops=dict(facecolor='green', shrink=0.05))
139+
arrowprops=dict(facecolor='green', shrink=0.05),
140+
annotation_clip=False)
139141

140142

141143
def _isurf(snap):

0 commit comments

Comments
 (0)