-
- Downloads
There was a problem fetching the pipeline summary.
Use switch_backend instead, see...
Use switch_backend instead, see https://github.com/matplotlib/matplotlib/issues/3466/#issuecomment-270603717
parent
1027aa2f
Branches
Tags
Pipeline #
... | @@ -11,7 +11,7 @@ from __future__ import print_function | ... | @@ -11,7 +11,7 @@ from __future__ import print_function |
# matplotlib stuff | # matplotlib stuff | ||
import matplotlib | import matplotlib | ||
from matplotlib import pyplot | 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 | from matplotlib.backends.backend_pdf import PdfPages | ||
# import bob.measure after matplotlib, so that it cannot define the backend | # import bob.measure after matplotlib, so that it cannot define the backend | ||
... | ... |