summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nxtlogger/chart.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/nxtlogger/chart.py b/nxtlogger/chart.py
index 5728226..8e68ae7 100644
--- a/nxtlogger/chart.py
+++ b/nxtlogger/chart.py
@@ -74,9 +74,11 @@ def plot_data (y_data_sets, x_data, width, height):
for i in range (len (y_data_sets)):
subplot.plot (asarray (y_data_sets[i][1]),
- "%s" % TYPES[i % len (TYPES)])
+ "%s" % TYPES[i % len (TYPES)],
+ label = y_data_sets[i][0])
+ subplot.legend ()
fig.autofmt_xdate ()
canvas = FigureCanvas (fig)