Why does the "Refresh Data" button in the property inspector refresh only the current plot in MATLAB 7.5 (R2007b)?
2 views (last 30 days)
Show older comments
If I produce two plots using the following commands and open Plot Tools:
t = 0:0.1:100;
lowFreq = sin(t);
higFreq = sin(10*t);
figure;
plot(t,lowFreq)
plottools
figure;
plot(t,higFreq)
plottools
I then click on the line objects in each plot and specify a different "y-datasource" for each of the two plots. However, when I click on the "Refresh Data" button, I see that only the figure currently in focus is refreshed. In MATLAB 7.4 (R2007a), the "Refresh Data" button would update all open figures.
Accepted Answer
MathWorks Support Team
on 27 Jun 2009
The behavior of the "Refresh Data" button in MATLAB 7.4 (R2007a) was unintended behavior which has been corrected for MATLAB 7.5 (R2007b). If you would still like to use the old behavior, you may use the REFRESHDATA function from the command line as follows:
figs = findall(0,'type','figure')
figs = mat2cell(figs)
refreshdata(figs)
This will refresh the data across all figures. For more information about the REFRESHDATA function please refer to the MATLAB documentation by entering the following command at the command prompt:
doc refreshdata
0 Comments
More Answers (0)
See Also
Categories
Find more on Graphics Objects in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!