summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Seguin <guillaume@segu.in>2008-05-17 11:24:46 +0200
committerGuillaume Seguin <guillaume@segu.in>2008-05-17 11:24:46 +0200
commitac35f05c06d1cbd3481a8a91b49cc538bb9f4ef6 (patch)
tree460cf8df438d01eeaca7aa7015876c9120e19f8e
parent81e5acee0e8d15128b00267a3381d02f3b2733ef (diff)
downloadgnxtlogger-ac35f05c06d1cbd3481a8a91b49cc538bb9f4ef6.tar.gz
gnxtlogger-ac35f05c06d1cbd3481a8a91b49cc538bb9f4ef6.tar.bz2
* Added x axis label
-rw-r--r--nxtlogger/chart.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/nxtlogger/chart.py b/nxtlogger/chart.py
index 97c7429..5728226 100644
--- a/nxtlogger/chart.py
+++ b/nxtlogger/chart.py
@@ -67,6 +67,7 @@ def plot_data (y_data_sets, x_data, width, height):
size = (float (width) / DPI, float (height) / DPI)
fig = Figure (dpi = DPI, figsize = size)
subplot = fig.add_subplot (111, axisbg = "#EEEEEE")
+ subplot.set_xlabel (u"t (s)")
formatter = TickFormatter (x_data)
subplot.xaxis.set_major_formatter (formatter)
subplot.grid (color = "#BBBBBB", linestyle = "-")