gnuplot terminal, "postscript", is not available
Ben Abbott
bpabbott at mac.com
Mon Mar 23 10:12:00 CDT 2009
On Monday, March 23, 2009, at 09:29AM, "Ivan Sutoris" <ivan.sutoris at gmail.com> wrote:
>Bug report for Octave 3.1.54+ configured for i686-pc-linux-gnu
>
>Description:
>-----------
>
>After compiling recent tip (9006:979d0492ff40), I can't print figures
>to files (it worked with devel. version before and also in 3.0.3). I
>get "error: gnuplot_drawnow: the gnuplot terminal, "postscript", is
>not available." I am using gnuplot 4.2 and the problem seems to occur
>in line 44 of gnuplot_drawnow.m:
>
> available_terminals = __gnuplot_get_var__ (plot_stream, "GPVAL_TERMINALS");
>
>After this line, available_terminals contains NaN, so no terminal is
>recognised. Could this be caused by this version of gnuplot not
>working corectly with __gnuplot_get_var__?
>
>Repeat-By:
>---------
>
>plot(randn(100,1))
>print myfig.eps -depsc
>
Ivan,
My mistake. The GPVAL_TERMINALS variable apparently is only available for gnuplot's developer's sources.
I'll provide a patch later. In the meantime, you can short-circuit the check in gnuplot_drawnow by ...
plot_stream = open_gnuplot_stream (2, []);
available_terminals = __gnuplot_get_var__ (plot_stream, "GPVAL_TERMINALS");
available_terminals = regexp (available_terminals, "\\b\\w+\\b", "match");
- if (any (strcmpi (available_terminals, gnuplot_trim_term (term))))
+ if (true)
Ben
More information about the Bug-octave
mailing list