aboutsummaryrefslogtreecommitdiff
path: root/support/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'support/scripts')
-rwxr-xr-xsupport/scripts/graph-build-time5
1 files changed, 5 insertions, 0 deletions
diff --git a/support/scripts/graph-build-time b/support/scripts/graph-build-time
index 4bb90c278b..433cd41d73 100755
--- a/support/scripts/graph-build-time
+++ b/support/scripts/graph-build-time
@@ -52,7 +52,12 @@
import matplotlib as mpl
import numpy
+# Use the Agg backend (which produces a PNG output, see
+# http://matplotlib.org/faq/usage_faq.html#what-is-a-backend),
+# otherwise an incorrect backend is used on some host machines).
+# Note: matplotlib.use() must be called *before* matplotlib.pyplot.
mpl.use('Agg')
+
import matplotlib.pyplot as plt
import matplotlib.font_manager as fm
import csv