fix multi-dimensional times plotting

This commit is contained in:
Frédéric Péters 2017-10-17 23:14:53 +02:00
parent ff6ef29aa8
commit 59c0af8e1e
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ class Command(GraphCommand):
plots.append((legend, plot))
if i > 1:
plt.legend([plot[0] for legend, plot in plots],
plt.legend([plot for legend, plot in plots],
[legend for legend, plot in plots])
plt.gca().xaxis.set_major_locator(matplotlib.dates.YearLocator())