[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: GNUPlot flicker Problem
From: |
taltman |
Subject: |
Re: GNUPlot flicker Problem |
Date: |
Tue, 4 Nov 2003 20:55:32 +0000 (UTC) |
A couple of points & questions:
* "for" needs to be terminated with an "endfor".
* Your indexing that you use in your plot statements is inconsistent
with the dimension of the matrices that you are passing to your
function. Double check ( to make sure that I'm not mistaken, too!
:-) ).
* Instead of using 'clear plot', I think you should check out the
'clg', 'clearplot', and 'closeplot' commands. One ( or a multiple )
of them will work well in your function:
http://www.octave.org/doc/octave_15.html#SEC125
Hope this helps!
~Tomer
On Nov 4, 2003 at 9:48am, albert treblataf wrote:
trebla >Date: Tue, 04 Nov 2003 09:48:03 -0800 (PST)
trebla >From: albert treblataf <address@hidden>
trebla >To: address@hidden
trebla >Subject: GNUPlot flicker Problem
trebla >Resent-Date: Tue, 04 Nov 2003 11:48:09 -0600
trebla >Resent-From: address@hidden
trebla >
trebla >Below is the mfile I'm using,
trebla >each time a new plot is displayed it flickers through all previously
displayed plots.
trebla >If I run this mfile twice, the plot becomes a mass of flickering lines
trebla >Any help would be greatly appreciated.
trebla >To test it I used the following.
trebla >
trebla >>>a = rand(5,25);
trebla >>>f = [1:1:25];
trebla >>>plotfrfs( a,f ' )
trebla >
trebla >
trebla >function plotfrfs(alpha,f)
trebla >grid
trebla >[r,c]=size(alpha);
trebla >for t=1:c/2-1;
trebla >clear plot
trebla >subplot(2,1,1);
trebla >plot(f(:,1),alpha(:,(t+1)),f(:,1),alpha(:,t));
trebla >subplot(2,1,2);
trebla >plot(f(:,1), alpha(:,(t+1)), f(:,1), alpha(:,t) );
trebla >pause (1);
trebla >end
trebla >endfunction
trebla >
trebla >The GNUPlot installed is gnuplot_38i0
trebla >
trebla >Thanks
trebla >
trebla >Best regards
trebla >
trebla >Albert
trebla >
trebla >
trebla >
trebla >
trebla >
trebla >---------------------------------
trebla >Do you Yahoo!?
trebla >Protect your identity with Yahoo! Mail AddressGuard
-------------------------------------------------------------
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
-------------------------------------------------------------