[Top][All Lists]

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

Re: plotting help needed.

From: James R. Phillips
Subject: Re: plotting help needed.
Date: Sun, 23 Oct 2005 17:24:33 -0700 (PDT)

--- Prasenjit Kapat  wrote:

> Hi,
> I have to use Octave 2.1.50 on Fedora core 2, REMOTELY. I plot into a
> ps file then ftp the ps file to see the plots. But when I plot more
> than one graph on the same figure, it creates a new page in the ps
> file for doing so. Finally when I am done plotting some five graphs, I
> have a 5-page ps file, from which I have to extract the 5-th page for
> my purpose.
> [ page 1 has  graph 1;
>   page 2 has  graph 1 and graph 2;
>   page 3 has  graph 1 , graph 2 and graph 3;....
> ]
> The 'replot' doesn't help b/c I am working remotely and I do not want
> to pull up the gnuplot window. A sample code is like this:
> x=[1 2 3]; y=[4 5 6];
> gset term postscript
> gset output "";
> plot(x,y,"@12;graph 1;",-x,y,"@13;graph 2;",-x,-y,"@14;graph 3");
> closeplot()
> what I want is just a one page ps file (rather than a 3 page one) with
> all the three graphs, so that I don't have to do the extraction
> process.
> Thanks in advance
> Kapat

If you want to put 3 plots on one page, probably the multiplot command is the
way to go.  Note that the replot command doesn't work on the entire plot
though, just on the individual subplots.  So you have to set the terminal and
output properly before using the multiplot command.

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]