Hello,
I am trying to run a plotting script. I have my imports as such:
from matplotlib import interactive
interactive(False)
import matplotlib.pyplot as plt
But I am getting this error repeatedly:
fig=figure(1,figsize=(8,6))
File "/usr/lib/python2.6/dist-packages/matplotlib/pyplot.py", line 251, in
figure
**kwargs)
File
"/usr/lib/python2.6/dist-packages/matplotlib/backends/backend_tkagg.py",
line 90, in new_figure_manager
window = Tk.Tk()
File "/usr/lib/python2.6/lib-tk/Tkinter.py", line 1646, in __init__
self.tk = _tkinter.create(screenName, baseName, className, interactive,
wantobjects, useTk, sync, use)
TclError: couldn't connect to display "localhost:10.0"
My $DISPLAY variable does change from time to time, but as I have it set to
interactive, why should this matter?
···
--
View this message in context: http://www.nabble.com/non-interactive-runs-keep-crashing-due-to-DISPLAY-tp24535712p24535712.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
John [H2O] wrote:
My $DISPLAY variable does change from time to time, but as I have it set
to interactive, why should this matter?
I wanted to explain a little further. I have it set to interactive(False)
sorry if there is confusion in my above statement.
The reason my DISPLAY variable changes is that I am running the scripts on a
remote machine and using ssh -X to login. So each time I log in, the DISPLAY
variable may change.
···
--
View this message in context: http://www.nabble.com/non-interactive-runs-keep-crashing-due-to-DISPLAY-tp24535712p24536107.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
Are you trying to run your script without opening a gui window?
If yes, "interacitve" is not what you want.
http://matplotlib.sourceforge.net/faq/howto_faq.html#matplotlib-in-a-web-application-server
Anyhow, I had similar experience that some Tk application failed to
open over ssh connection. And sometimes, -Y option helped. If -Y does
not help, see if other backends work.
-JJ
···
On Fri, Jul 17, 2009 at 10:57 AM, John [H2O]<washakie@...287...> wrote:
John [H2O] wrote:
My $DISPLAY variable does change from time to time, but as I have it set
to interactive, why should this matter?
I wanted to explain a little further. I have it set to interactive(False)
sorry if there is confusion in my above statement.
The reason my DISPLAY variable changes is that I am running the scripts on a
remote machine and using ssh -X to login. So each time I log in, the DISPLAY
variable may change.
--
View this message in context: http://www.nabble.com/non-interactive-runs-keep-crashing-due-to-DISPLAY-tp24535712p24536107.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options