0

I am trying to create a plot on a remote machine using pyplot and I get the following exception _tkinter.TclError: no display name and no $DISPLAY environment variable. Before import matplotlib.pyplot as plt, I do import matplotlib matplotlib.use('Agg') However, it does not solve the issue. The exception is thrown when fig = plt.figure() is being executed. Could you please help me with this problem? Thank you very much.

PS. I access the remote machine via ssh -X ....

denys.fridman
  • 165
  • 2
  • 7
  • There are several questions with similar titles listed under **Related** - anything that might help you? – handle May 14 '17 at 18:39
  • Same error with e.g. this example? http://stackoverflow.com/questions/4706451/how-to-save-a-figure-remotely-with-pylab/4706614#4706614 – handle May 14 '17 at 18:42
  • Like I said, I've done all of those steps, and still get that error. – denys.fridman May 14 '17 at 18:51

0 Answers0