Skip to content

Commit 807e014

Browse files
committed
fix broken test, dict in python3 values, keys give generator while matplotlib accepts only list. sigh.
1 parent e490347 commit 807e014

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pyexcel_matplotlib/plot.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ def render_sheet(self, sheet, title=DEFAULT_TITLE,
3838
sheet.name_columns_by_row(label_y_in_row)
3939
the_dict = sheet.to_dict()
4040
fig, ax = plt.subplots()
41-
ax.pie(the_dict.values(), labels=the_dict.keys(), **keywords)
41+
ax.pie(list(the_dict.values()),
42+
labels=list(the_dict.keys()), **keywords)
4243
ax.axis('equal')
4344
ax.set_title(title)
4445
fig.savefig(self._image_stream, format=self._file_type)

0 commit comments

Comments
 (0)