Skip to content

Commit 5bef379

Browse files
author
Tino Michael
committed
array before squeeze not necessary
1 parent c6b065c commit 5bef379

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

matplotlib2tikz/legend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ def draw_legend(data, obj):
211211
data, handle.get_color())
212212
except ValueError:
213213
data, legend_color, _ = mycol.mpl_color2xcolor(
214-
data, numpy.squeeze(numpy.array(handle.get_color())))
214+
data, numpy.squeeze(handle.get_color()))
215215
data['legend colors'].append('\\addlegendimage{no markers, %s}\n'
216216
% legend_color)
217217
except AttributeError:

0 commit comments

Comments
 (0)