From help-octave-request at bevo dot che dot wisc dot edu Mon Sep 9 16:01:16 2002 Subject: Re: saving plots From: luc dot lefebvre at mcgill dot ca To: David Crescent cc: help-octave at bevo dot che dot wisc dot edu Date: Mon, 9 Sep 2002 16:59:23 -0400 (EDT) Hi David, I use something like: function plot2ps(f) ## use a fixed width font gset terminal postscript landscape enhanced "Courier" 12; the_title=strcat("File: ",f) title(the_title) eval(sprintf("gset output \"%s%s\" \n",f,".ps")); replot; gset terminal X11; printf("\n Wrote %s/%s%s\n\n",pwd,f,".ps"); endfunction Where the "gset terminal...." line is what does the trick. I then print the postscript file. The "gset terminal X11" line resets so that the next plot gets to the screen. -- Luc Lefebvre o /`-' Open Source, a strategic choice \ for mission-critical applications ___/___./ Key fingerprint = D2E5 5E35 B910 6F4E 0242 EC63 0FD9 96D0 C7F4 784E On Mon, 9 Sep 2002, David Crescent wrote: > How do you save a plot in octave? > > Thanks, > Dave > > > > > ------------------------------------------------------------- > 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 > ------------------------------------------------------------- > > ------------------------------------------------------------- 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 -------------------------------------------------------------