Skip to content

Commit d2c3b6f

Browse files
committed
fix for clean_figure
1 parent 5ba5ac9 commit d2c3b6f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tikzplotlib/_cleanfigure.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -569,8 +569,8 @@ def _get_line_data(linehandle):
569569
xData, yData, zData = linehandle.get_data_3d()
570570
data = _stack_data_3D(xData, yData, zData)
571571
else:
572-
xData = linehandle.get_xdata().astype(np.float32)
573-
yData = linehandle.get_ydata().astype(np.float32)
572+
xData = np.asarray(linehandle.get_xdata()).astype(np.float32)
573+
yData = np.asarray(linehandle.get_ydata()).astype(np.float32)
574574
data = _stack_data_2D(xData, yData)
575575
return data, is3D
576576

0 commit comments

Comments
 (0)