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
@@ -52,7 +52,12 @@
import matplotlib as mpl
+# Use the Agg backend (which produces a PNG output, see
+# otherwise an incorrect backend is used on some host machines).
+# Note: matplotlib.use() must be called *before* matplotlib.pyplot.
import matplotlib.pyplot as plt
import matplotlib.font_manager as fm