Advertisement
Guest User

Untitled

a guest
Sep 24th, 2017
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk,sync, use)
  2. TclError: no display name and no $DISPLAY environment variable
  3.  
  4. import matplotlib
  5. import matplotlib.pyplot
  6.  
  7. # force headless backend, or set 'backend' to 'Agg'
  8. # in your ~/.matplotlib/matplotlibrc
  9. matplotlib.use('Agg')
  10.  
  11. # force non-interactive mode, or set 'interactive' to False
  12. # in your ~/.matplotlib/matplotlibrc
  13. matplotlib.pyplot.ioff()
  14.  
  15. import matplotlib
  16. # force headless backend, or set 'backend' to 'Agg'
  17. # in your ~/.matplotlib/matplotlibrc
  18. matplotlib.use('Agg')
  19.  
  20. import matplotlib.pyplot
  21. # force non-interactive mode, or set 'interactive' to False
  22. # in your ~/.matplotlib/matplotlibrc
  23. matplotlib.pyplot.ioff()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement