From 59c0af8e1e448f6204e3871724a4dfda8873bf34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Tue, 17 Oct 2017 23:14:53 +0200 Subject: [PATCH] fix multi-dimensional times plotting --- eodb/events/management/commands/times.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eodb/events/management/commands/times.py b/eodb/events/management/commands/times.py index 5662a33..752ce0f 100644 --- a/eodb/events/management/commands/times.py +++ b/eodb/events/management/commands/times.py @@ -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())