[Top][All Lists]

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


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


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]