How can I force a figure to refresh?
이전 댓글 표시
I have a figure that I am doing a lot of programtic manipulation to and after all of the code has executed, some of the elements either aren't visible, or the sizes are all wrong. However, if I simply grab the endge of the window and just slightly resize the figure, everything is refreshed and looks normal.
Before someone says "drawnow", I have tried "drawnow" in multiple locations. It seems like I need to flag the figure as dirty and then call "drawnow", but I haven't figured out a way to do that.
댓글 수: 2
Askic V
2023년 1월 18일
Did you check refreshdata from the documentation?
https://www.mathworks.com/help/matlab/creating_plots/making-graphs-responsive-with-data-linking.html
Matt Butts
2023년 1월 18일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Graphics Performance에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!