mirror of https://github.com/Desuuuu/klipper.git
graphstats: Fix matplotlib import error
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
bdc7383e51
commit
064804b688
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue