Skip to content

Commit e77db3f

Browse files
committed
fix markers in legend for pdf output
1 parent 43dffce commit e77db3f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

solarmach/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1043,7 +1043,10 @@ def legend_arrow(width, height, **_):
10431043
if markers:
10441044
offset = matplotlib.text.OffsetFrom(leg1, (0.0, 1.0))
10451045
for i, body_id in enumerate(self.body_dict):
1046-
yoffset = i*18.7 # 18.5 19.5
1046+
if outfile.split('.')[-1] == 'pdf':
1047+
yoffset = i*19.25 # 18.5 19.5
1048+
else:
1049+
yoffset = i*18.7 # 18.5 19.5
10471050
if markers.lower()=='letters':
10481051
if body_id[:6] == 'STEREO':
10491052
mark = str(body_id[-1])

0 commit comments

Comments
 (0)