浏览代码

scripts/graph-build-time: remove X dependency

[Thomas: tweak commit title.]

Signed-off-by: Sascha Arthur <sascha.arthur@gmail.com>
Tested-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sascha Arthur 11 年之前
父节点
当前提交
28ed63bae2
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      support/scripts/graph-build-time

+ 2 - 1
support/scripts/graph-build-time

@@ -49,9 +49,10 @@
 #   * argparse (by default in Python 2.7, requires python-argparse if
 #   * argparse (by default in Python 2.7, requires python-argparse if
 #     Python 2.6 is used)
 #     Python 2.6 is used)
 
 
-import matplotlib
+import matplotlib as mpl
 import numpy
 import numpy
 
 
+mpl.use('Agg')
 import matplotlib.pyplot as plt
 import matplotlib.pyplot as plt
 import matplotlib.font_manager as fm
 import matplotlib.font_manager as fm
 import csv
 import csv