help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pslatex terminal output--Problem identified.


From: Ethan Merritt
Subject: Re: pslatex terminal output--Problem identified.
Date: Tue, 4 Oct 2005 17:55:47 -0500
User-agent: KMail/1.6.1

On Tuesday 04 October 2005 03:35 pm, John W. Eaton wrote:
> On  4-Oct-2005, Petr Mikulik wrote:
> 
> | > Another thing that would be very useful would be a way to query
> | > individual settings.  Parsing text output would be OK, provided that
> | > it is easy to do that (i.e., the output is structured in some way, not
> | > some natural language thing) and the format does not change.

Would it be preferable if gnuplot's "show <foo>" command produced output
corresponding to the input syntax, just as "save" does now?

For example, for "show title"

current output:
    title is "Foo", offset at ((character units) 0, 0, 0)
equivalent line in "save" corresponds in input syntax:
    set title "Foo"  offset character 0, 0, 0 font "" norotate

>> Do you mean  gget.m  from octave-forge?
>>
> it is a terrible kluge and has a built-in race condition because
> it sends a "save" command to gnuplot then waits a while (how long is
> long enough?) and then parses the output.

Can it not read back synchronously?

        fprintf(GNUPLOT_OUT,"save '| outpipe'\n");
        fflush(GNUPLOT_OUT);
        while ( fgets(&line, sizeof(line), GNUPLOT_INPIPE) )
            look_for_desired_option(&line);
                


-- 
Ethan A Merritt       address@hidden
Biomolecular Structure Center
Mailstop 357742
University of Washington, Seattle, WA 98195



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]