Skip to content

Commit 6a5c94d

Browse files
author
Tino Michael
committed
added comment
1 parent dfa6f38 commit 6a5c94d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

matplotlib2tikz/line2d.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,8 @@ def draw_line2d(data, obj):
144144
else:
145145
content.append('%.15g %.15g\n' % (x, y))
146146
else:
147+
# matplotlib allows plotting of data containing `astropy.units`, but they will
148+
# break the formatted string here. Try to strip the units from the data.
147149
try:
148150
xdata = xdata.value
149151
except AttributeError:

0 commit comments

Comments
 (0)