Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #3063 > unrolled thread
| Started by | xmeng@pinterest.com |
|---|---|
| First post | 2015-08-30 11:22 -0700 |
| Last post | 2015-08-30 22:32 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.graphics.apps.gnuplot
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
| From | xmeng@pinterest.com |
|---|---|
| Date | 2015-08-30 11:22 -0700 |
| Subject | Suppress Gnuplot warning messages in batch mode |
| Message-ID | <fd01ebcf-e1c3-4240-af7d-e05aae85e75b@googlegroups.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.
[toc] | [next] | [standalone]
| From | Karl-Friedrich Ratzsch <mail.kfr@gmx.net> |
|---|---|
| Date | 2015-08-30 22:32 +0200 |
| Message-ID | <mrvp8f$rb$1@solani.org> |
| In reply to | #3063 |
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
[toc] | [prev] | [standalone]
Back to top | Article view | comp.graphics.apps.gnuplot
csiph-web