[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
printing
From: |
John W. Eaton |
Subject: |
printing |
Date: |
Fri, 8 Mar 2002 22:12:08 -0600 |
On 1-Mar-2002, SA <address@hidden> wrote:
| 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
There is no print command distributed with Octave because with current
versions of gnuplot, there is no reliable way to save and restore the
current terminal type and output.
It appears the the next major release of gnuplot will support
something like
set term push
...
set term pop
so once that's available, we can implement a reasonable print
command.
jwe
-------------------------------------------------------------
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
-------------------------------------------------------------
- printing, SA, 2002/03/01
- printing,
John W. Eaton <=