Re: pylab without X11
This may help ... or not ( 2nd part )
try not to do pylab.figure()
in your script:
pylab.plot, or pylab.imshow or whatever you want to use
then
savefig("myFigure.png") for example
do not use show()
in my case ( with the WXAgg backend ), it works, it generates the png file
Marc
Willem-Jan Vriend a écrit :
I want to use pylab (matplotlib) on a machine without X11. I'm trying to
generate onthefly graphics for an apache2 web service, so they do not
have to be displayed on this machine !
When i do
pylab.figure()
I get the error
TclError: couldn't connect to display ":0.0"
I tried setting the DISPLAY environment variable to "", ":0.0" but I got
the same error message.
Any help is very much appreciated.
.
Relevant Pages
- Re: Form Security
... After all this, if no error message has been generated, the form contents are emailed to me. ... I'm no Linux guru, so I don't know what someone could do to cause problems with this script, other than spam me. ... What he's proposing is false security - which is worse than no security ... (comp.lang.php) - RE: Cannot Edit Logion Scripts
... remove the script that you would like to edit. ... Please capture a screenshot of the error message received on the client ... Microsoft Online Newsgroup Support ... This newsgroup only focuses on SBS technical issues. ... (microsoft.public.windows.server.sbs) - Re: Sound file
... There shouldn't be any problems in the limited user accounts. ... The only other problem just about has to be with the attaching of the .wav ... > Common script errors messages can be eliminated by Clicking: ... >> click on the html file we get an error message and the wav file does ... (microsoft.public.windowsxp.accessibility) - Re: Monitor GUI
... I currently have a simple little Perl script whose job is to listen on ... a TCL window. ... red when we've gotten an error message. ... GUI never gets created. ... (comp.lang.perl.tk) - Re: Form Security
... I am running it through trimand strip_tags, but haven't decided yet on a regular expression to use, or even if I really need to. ... After all this, if no error message has been generated, the form contents are emailed to me. ... I'm no Linux guru, so I don't know what someone could do to cause problems with this script, other than spam me. ... What he's proposing is false security - which is worse than no security ... (comp.lang.php) |
|