help-octave
[Top][All Lists]
Advanced

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

Re: bizarre plotting behavior


From: Matthias Brennwald
Subject: Re: bizarre plotting behavior
Date: Sat, 9 Dec 2006 08:35:23 +0100

Dear Ron et al,

I had a similar plotting problems with Octave 2.9.9. Octave 2.1.71 (that's what I have now) does fine with the below examples. I believe my plotting problems are fixed in the current Octave 2.9.9 code available by CVS. However, I never tried this, because I am too stupid to compile that.

Cheers,
Matthias


On 07.12.2006, at 19:07, address@hidden wrote:

Date: Thu, 07 Dec 2006 09:33:12 -0800
From: Ron Crummett <address@hidden>
Subject: bizarre plotting behavior
To: address@hidden
Message-ID: <address@hidden>
Content-Type: text/plain; format=flowed; charset=ISO-8859-1

Hello all -

I have noticed some rather bizarre behavior when I try to plot multiple
plots in a subplot window.  As an example:

subplot(211);
plot(rand(1, 100));
hold on
plot(rand(1, 100));
hold off
subplot(212);
plot(rand(1, 100));
hold on
plot(rand(1, 100));
hold off

The first time I run something like this it works fine:  two subplot
windows, each with two data vectors plotted. What gets weird is when I
try to run it again:

oneplot();
clf;
subplot(211);
plot(rand(1, 100));
hold on
plot(rand(1, 100));
hold off
subplot(212);
plot(rand(1, 100));
hold on
plot(rand(1, 100));
hold off

The second time (and all subsequent times) the upper subplot window
plots the first data vector, then clears and plots only the second data
vector, despite my command to hold the first plot.  The lower subplot
window still works fine with both data vectors plotted. All additional plot windows that I open do the same thing, keeping only the second data
vector in the upper window.  Nothing I can think of to do fixes this
except exiting and then re-entering Octave.

Has anyone else seen something like this?  I am using 2.9.6 on kubuntu
breezy with gnuplot 4.0.

Thanks.

-Ron




-------
Matthias Brennwald
Lägernstrasse 6
CH 8037 Zürich
+41 (0)44 364 17 03
address@hidden





reply via email to

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