[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
printing
From: |
SA |
Subject: |
printing |
Date: |
Fri, 1 Mar 2002 11:36:23 +0000 |
Is there a built in "print" function for graphs or should i be using
something like
------------------------------
>cat oprint.m
function oprint(filename,device)
if(nargin==0)
filename="|lpr";
disp("Using |lpr (standard printer)");
end
if(nargin<2)
device="postscript"
disp("Using postscript");
end
%% for X11
%% set output to be the print or postscript file
gset("term",device);
cmd=sprintf("\"%s\"",filename);
gset("output",cmd);
replot
gset term X11
gset output
---------------------------------------
Is there an easy way to capture setting like "term" to a variable,
I find that temp=show("term"); doesn't work
Thanks matt
-------------------------------------------------------------
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
-------------------------------------------------------------