>>>>> "rif" == rif  <[EMAIL PROTECTED]> writes:

    rif> I'm trying to understand and use CMUCL's external programming
    rif> interface, but I'm not having much luck with communications.

    rif> What I actually want to do is start the gnuplot program and use it to
    rif> plot data contained in arrays.  So my first attempt is

    rif> (setf p (run-program "gnuplot" nil 
    rif>                      :wait nil
    rif>                      :input :stream
    rif>                      :output t
    rif>                      :error :output))

[snip]

    rif> I would like to be able to send commands to the gnuplot via this
    rif> stream, for instance using format, but this did not work:

    rif> * (format (process-input p) "plot sin(x)~%")
    rif> NIL

    rif> It returned nil, and nothing was plotted.  What am I missing?

Perhaps you need to flush the output via force-output or
finish-output.

You may also want to look at clocc (clocc.sourceforge.net) which has
an interface to gnuplot similar to what you are trying to do.

Ray

Reply via email to