|author||Luca Ceresoli <email@example.com>||2014-10-12 12:52:21 +0200|
|committer||Peter Korsgaard <firstname.lastname@example.org>||2014-10-12 17:21:00 +0200|
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 <email@example.com> Cc: Sascha Arthur <firstname.lastname@example.org> Cc: "Yann E. MORIN" <email@example.com> Cc: Thomas Petazzoni <firstname.lastname@example.org> Signed-off-by: Luca Ceresoli <email@example.com> Acked-by: "Yann E. MORIN" <firstname.lastname@example.org> Signed-off-by: Peter Korsgaard <email@example.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
@@ -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