[Top][All Lists]

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

Re: Saving plots created with Octave under Linux

From: John B. Thoo
Subject: Re: Saving plots created with Octave under Linux
Date: Wed, 6 Apr 2005 07:34:49 -0700

I use the following file: "/sw/share/octave/site/m/printeps.m".

% A. S. Hodel
% Assoc. Prof, Dept. Elect & Comp Eng
% Auburn University, AL 36849-5201
% address@hidden

function printeps(filename)
% function printeps(filename)
% replot screen plot to a file
% inputs:
%   filename: string:
% no argument checking done - this means YOU mark!

  gset terminal postscript eps color
  eval(sprintf("gset output '%s'", filename));
  #gset terminal x11

To print a plot to a file, I simply type

  > printeps ("filename.eps")

It works great. And you can easily edit it to "printfig", &c. I use Octave on Mac OS X, but I imagine that that doesn't matter.


On Apr 6, 2005, at 6:47 AM, Attie Combrink wrote:


I wish to save plots that I generated with Octave.  I am running Octave
under Linux, i.e. the command "plot" opens an Xwindow on the screen,
generated by gnuplot.  Any advice on how to save such a plot to a
PostScript or JPEG file?



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

Octave's home on the web:
How to fund new projects:
Subscription information:

reply via email to

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