From 84a55551e392d45a6a6cf87ece4de1274f72b56d Mon Sep 17 00:00:00 2001 From: Manuel Gunther <siebenkopf@googlemail.com> Date: Fri, 8 Sep 2017 10:02:20 -0600 Subject: [PATCH] Use switch_backend instead, see https://github.com/matplotlib/matplotlib/issues/3466/#issuecomment-270603717 --- bob/bio/base/script/evaluate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bob/bio/base/script/evaluate.py b/bob/bio/base/script/evaluate.py index 2d1ba1eb..562c5956 100644 --- a/bob/bio/base/script/evaluate.py +++ b/bob/bio/base/script/evaluate.py @@ -11,7 +11,7 @@ from __future__ import print_function # matplotlib stuff import matplotlib from matplotlib import pyplot -pyplot.ioff() # turn off interactive mode -- no figure window will be shown +pyplot.switch_backend('agg') # switch to non-X backend from matplotlib.backends.backend_pdf import PdfPages # import bob.measure after matplotlib, so that it cannot define the backend -- GitLab