From 064804b68867a83fd77f687b2f504069b74de771 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Sun, 10 Nov 2019 10:18:31 -0500 Subject: [PATCH] graphstats: Fix matplotlib import error Signed-off-by: Kevin O'Connor --- scripts/graphstats.py | 1 + 1 file changed, 1 insertion(+) 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