Prev: FFT DNA
Next: average on a circle
From: Frank on 29 Apr 2010 18:44 Hi all! I have this problem. I use pcolor to plot the data of a 2D matrix. After that, I have a for loop and at each iterations I apply some modifications to the 2D matrix of the previous step. I would like the pcolor plot to update each time I change the data, without the need to close the figure and open a new one. Otherwise this will result in the reset of the position, zoom and all the other properties which I have choosen. This is also because it is an iterative process which involves user-provided values at each iteration and it is much better to have the figure fixed where you have put it. Thank you very much in advance Frank
From: Steven Lord on 29 Apr 2010 22:30 "Frank " <francesco.manni01(a)fastwebnet.it> wrote in message news:hrd23l$ip9$1(a)fred.mathworks.com... > Hi all! > > I have this problem. I use pcolor to plot the data of a 2D matrix. After > that, I have a for loop and at each iterations I apply some modifications > to the 2D matrix of the previous step. I would like the pcolor plot to > update each time I change the data, without the need to close the figure > and open a new one. > Otherwise this will result in the reset of the position, zoom and all the > other properties which I have choosen. This is also because it is an > iterative process which involves user-provided values at each iteration > and it is much better to have the figure fixed where you have put it. The first time you create the PCOLOR plot, have it return an output argument (the handle.) Then SET the CData property of the handle to update it. -- Steve Lord slord(a)mathworks.com comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ
|
Pages: 1 Prev: FFT DNA Next: average on a circle |