From help-octave-request at bevo dot che dot wisc dot edu Fri May 28 11:26:19 1999 Subject: Re: Save a plot to .ps From: Daniel Heiserer To: jwe at bevo dot che dot wisc dot edu, "help-octave@bevo.che.wisc.edu" Date: Fri, 28 May 1999 18:03:43 +0200 jwe at bevo dot che dot wisc dot edu wrote: > > On 28-May-1999, Daniel Heiserer wrote: > > | diary('parseme') > | gshow terminal > | diary off > | ==> parse the diary-file > | > | I see it will work. Thanks > > Hmm. This doesn't work for me, because Octave does not see the output > from gnuplot: > > $ octave > GNU Octave, version 2.0.14 (i686-pc-linux-gnu). > Copyright (C) 1996, 1997, 1998, 1999 John W. Eaton. > This is free software with ABSOLUTELY NO WARRANTY. > For details, type `warranty'. > > octave:1> diary ('parseme') > octave:2> gshow terminal > octave:3> > terminal type is x11 > > diary off > octave:4> quit > $ cat parseme > octave:2> gshow terminal > octave:3> diary off > > The message from gnuplot goes directly to stdout or stderr, so Octave > doesn't capture it and send it to the pager or put it in the diary > file. What about the system command. Does it work in a sub-shell or does it work in the current shell? If it works in the current shell we could submit a "scrip" (typescript) and reread it. Why not implementing a two way connection and making gnuplots output available for octave. Would have nice features for other things too. The simpliest way would be to pipe gnuplots stdout/stderr through "|tee" and reread the tee-file if requested. -- Mit freundlichen Gruessen Daniel Heiserer ----- -------------------------------------------------------------- Dipl.-Phys. Daniel Heiserer, BMW AG, Knorrstrasse 147, 80788 Muenchen Abteilung EK-20 Tel.: 089-382-21187, Fax.: 089-382-42820 mailto:daniel dot heiserer at bmw dot de