Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #3064
| From | Karl-Friedrich Ratzsch <mail.kfr@gmx.net> |
|---|---|
| Newsgroups | comp.graphics.apps.gnuplot |
| Subject | Re: Suppress Gnuplot warning messages in batch mode |
| Date | 2015-08-30 22:32 +0200 |
| Organization | solani.org |
| Message-ID | <mrvp8f$rb$1@solani.org> (permalink) |
| References | <fd01ebcf-e1c3-4240-af7d-e05aae85e75b@googlegroups.com> |
Am 30.08.2015 um 20:22 schrieb xmeng@pinterest.com: > I wrote a Python program, which calls Gnuplot to export image files. For every plot, my stderr got warning messages such as > > gnuplot: unable to open display '' > gnuplot: X11 aborted. > > I knew I can redirect these to /dev/null, but I do need my stderr for other purposes. I wonder if there's an Gnuplot option to turn it off. > What you see happens if your "~/.gnuplot" contains a line that says "set term x11" and your program doesn't give "gnuplot -d" to skip the initialisation file. If you have a binary that uses x11 as its default terminal (the compiled-in default), it recognises if it is started in an environment without an x11 server (text mode console or so) and starts with terminal "unknown". That's different from the other interactive terminals, which only give an error when you try to actually plot on them. Hth. Karl
Back to comp.graphics.apps.gnuplot | Previous | Next — Previous in thread | Find similar
Suppress Gnuplot warning messages in batch mode xmeng@pinterest.com - 2015-08-30 11:22 -0700 Re: Suppress Gnuplot warning messages in batch mode Karl-Friedrich Ratzsch <mail.kfr@gmx.net> - 2015-08-30 22:32 +0200
csiph-web