aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2019-11-10 10:18:31 -0500
committerKevin O'Connor <kevin@koconnor.net>2019-11-10 10:18:31 -0500
commit064804b68867a83fd77f687b2f504069b74de771 (patch)
tree40533551a5600aaf76709ee10e9092fa41b262b8
parentbdc7383e51ca37ec87c20fdbc14154ff1417a9dc (diff)
downloadkutter-064804b68867a83fd77f687b2f504069b74de771.tar.gz
kutter-064804b68867a83fd77f687b2f504069b74de771.tar.xz
kutter-064804b68867a83fd77f687b2f504069b74de771.zip
graphstats: Fix matplotlib import error
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
-rwxr-xr-xscripts/graphstats.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/graphstats.py b/scripts/graphstats.py
index 44c1a1fd..f28685ad 100755
--- a/scripts/graphstats.py
+++ b/scripts/graphstats.py
@@ -51,6 +51,7 @@ def parse_log(logname, mcu):
return out
def setup_matplotlib(output_to_file):
+ global matplotlib
if output_to_file:
matplotlib.use('Agg')
import matplotlib.pyplot, matplotlib.dates, matplotlib.font_manager