help-octave
[Top][All Lists]
Advanced

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

Re: subplot question between 2,1.xx and 2.9.12


From: Michael Goffioul
Subject: Re: subplot question between 2,1.xx and 2.9.12
Date: Mon, 16 Jul 2007 10:10:40 +0200

On 7/16/07, Tatsuro MATSUOKA <address@hidden> wrote:
The following simple code
*****************
subplot(111);clg;
%
x=linspace(0,3*pi,301);
subplot(211);
xlabel("x \n");
ylabel("sin(x)\n");
axis([0 2*pi -1.1 1.1]);
plot(x,sin(x));
%
subplot(212);
xlabel("x \n");
ylabel("cos(x)\n");
axis([0 2*pi -1.1 1.1]);
plot(x,cos(x));
**********************
give the graph on octave 2.1.50 (cygwin)
http://www.geocities.jp/tmacchant/Files/sbptest1.png

but the same code on octave 2.9.12 on MCVC
give the graph
http://www.geocities.jp/tmacchant/Files/sbptest2.png

The label and axis setting is ignored.

They are not ignored, but the "plot" command resets the axes object to
its default state. Any title/label is then lost. This is compatible with Matlab.
You can avoid the reset by turning on the hold state.

Michael.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]