Why are the zoom callbacks of my figure not restored when I save and reopen my figure in MATLAB 7.8 (R2009a)?
이전 댓글 표시
When I run the following code:
f = figure;
plot(1:10)
z1 = zoom(gcf);
set(z1,'ActionPostCallback','TMWtest')
saveas(f,'TMW_example_fig','fig')
close all
drawnow
open('TMW_example_fig.fig')
z2 = zoom(gcf);
get(z2,'ActionPostCallback')
The GET command returns the following:
ans =
[]
Why is the zoom callback not saved?
채택된 답변
추가 답변 (2개)
Charles
2015년 8월 26일
0 개 추천
Thank you, this helps even on version 2015a. It puzzles me why the zoom callbacks are not saved with the figure while the datatip callbacks are. But, this does resolve the issue for me.
Charles
2015년 8월 26일
0 개 추천
Thank you, this helps even on version 2015a. It puzzles me why the zoom callbacks are not saved with the figure while the datatip callbacks are. But, this does resolve the issue for me.
카테고리
도움말 센터 및 File Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!