path: root/support/scripts/graph-build-time
diff options
authorGravatar Luca Ceresoli <luca@lucaceresoli.net>2014-10-12 12:52:21 +0200
committerGravatar Peter Korsgaard <peter@korsgaard.com>2014-10-12 17:21:00 +0200
commit96183af9af136da565a3e7396346a8f9d3302f31 (patch)
tree5ea1f5c39504af15e40d02ef3591d7037904393c /support/scripts/graph-build-time
parent9e33687a13c554d6a1222d038dd159c533eacc27 (diff)
scripts/graph-build-time: clarify backend selection
This instruction in the middle of 'import' lines looks very strange. Also, it was not obvious to me what the 'Agg' backend is. Both things are actually correct, but it took a while to find out why. So clarify with a comment to save someone else's time. [Peter: fix s/soe/some/ typo] Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net> Cc: Sascha Arthur <sascha.arthur@gmail.com> Cc: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net> Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'support/scripts/graph-build-time')
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.
import matplotlib.pyplot as plt
import matplotlib.font_manager as fm
import csv