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