[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
plotting problems
From: |
Matt Funk |
Subject: |
plotting problems |
Date: |
Wed, 25 Aug 2004 18:38:57 +0000 |
User-agent: |
KMail/1.6.2 |
Hi,
i have the following problem.
my script needs to plot some stuff in one plotting window,
then plot other stuff in another (second) plotting window, return to the
previous (first) plotting window and plot some more stuff in it.
The way i tried to do this was to switch between the plotting windows using
the figure(n) command. That is, i plotted the stuff in the first window, gave
the "hold on" command and switched to the second plotting window.
Then i plotted the stuff i needed to plot in there.
THEN, when i switch back to the first plotting window using 'figure(0)' it
copys all the stuff from the active (second) window back into the first one
even though i have the hold command on it.
So i guess it appears that the hold command is global for all plotting windows
rather than a local (to the current plotting window) command.
So, can anybody tell me how to plot different stuff in different plotting
windows and switch back and forth in between them WITHOUT octave copying the
contents?
Any help will be greatly appreciated.
mat
ps: here is an example:
a = [0 1 2 3 4 5 6 7 8];
b = [1 2 3 4 3 2 1 1 1];
c = [1 3 5 7 3 1 0 0 0];
plot(a,b,"-b"); ### figure(0) pops up
hold on;
figure(1); ### stuff from figure(0) is being copied into figure(1)
plot(a,c,"-g"); ### figure(1) now contains c vs. a plot
hold on;
figure(0);
At this point the contents of figure(1) are being copied into figure(0) which
i do NOT want
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------
- plotting problems,
Matt Funk <=