On Sat, Dec 16, 2023 at 6:40 PM Sven Schreiber
<sven.schrei...@fu-berlin.de> wrote:
>
> not sure whether the observed behavior (with gretl 2023c) with the
> following script is expected:
>
> <hansl>
> open denmark
> string s
> gnuplot LRM --time-series --outbuf=s { set title 'My Title';} # works
> gnuplot --inbuf=s --output=display  { set title 'My Title';} # fails
> </hansl>
>
> Two questions:
>
> - The first gnuplot invocation works, but it also produces a displayed
> plot. Is this intended even though the outbuf option is given? I would
> have thought that it only writes the output to the string s, not also
> displaying something.

On Linux the plot is not displayed in this case; I'll have to try on Windows.

> - The second gnuplot line yields a parser error.  Is the inbuf option
> incompatible with further added gnuplot commands?

So it would seem. I'll look into it, but it seems reasonable that if
you've already created a plot buffer there would be no need to mess
with it further. In the example, "My Title" is shown via the second
gnuplot command (if the "{ set ... }" addition is dropped) since it
was specified when the buffer was created.

Allin
_______________________________________________
Gretl-devel mailing list -- gretl-devel@gretlml.univpm.it
To unsubscribe send an email to gretl-devel-le...@gretlml.univpm.it
Website: 
https://gretlml.univpm.it/postorius/lists/gretl-devel.gretlml.univpm.it/

Reply via email to