Skip to content
Snippets Groups Projects
Commit 84a55551 authored by Manuel Günther's avatar Manuel Günther
Browse files

Use switch_backend instead, see...

parent 1027aa2f
Branches
Tags
1 merge request!96Resolve "matplotlib Invalid DISPLAY variable"
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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment