[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Two superposed plots
From: |
Martin Senator |
Subject: |
Re: Two superposed plots |
Date: |
Wed, 21 Jun 2006 11:35:03 -0400 (EDT) |
On Wed, 21 Jun 2006, Dmitri A. Sergatskov wrote:
On 6/21/06, Martin Senator <address@hidden> wrote:
Do you mean something like that:
x=linspace(-10,10,101);
y1 = sin(x);
plot(x, y1,"-r;Sin;") # plot 1
hold on
y2 = 2+cos(x);
plot(x-20, y2, "-b;Cos;") # plot 2
Dmitri.
--
Yes. Except that I might add before the
first plot
__gnuplot_set__ xrange [0:20]
and then make the second plot
plot(y1,y2, "-b;circle;") # plot 2,
which uses the original axes/scales,
and doesn't draw the circle in the
place reserved for it;
I don't need to label axes for the
second plot.
ms