Editplot does not disable
2 次查看(过去 30 天)
显示 更早的评论
Curious problem.
I am making figures that have a "continue" button on and basically the code waits for you to hit continue before carrying on. This is so that the figure is plotted and the user has time to look at it and ensuring things are going OK.
The code I am using to do this is:
h=figure;
hh=uicontrol('String','Continue','Callback','uiresume(h)');
plot(time,A);
hold on
plot(time,someotherthings);
legend('text')
disp('check this out, hit continue...')
uiwait(h)
disp('accepted. Continuing...')
Note. I am also using:
set(groot,'defaultFigureCreateFcn','plottools(gcf)')
at the top because I want all the figures in the same window and with the plot tools available like zooming and panning.
Now when running or stepping through this, I noticed that you'd get to the uiwait bit and you couldn't hit "continue" because plotedit was enabled and this meant all the UI stuff on the figure was clickable only for modifying positions and things. So I included:
plotedit off
after the legend was done.
Now. When stepping through, everything works nicely. But if I actually run the code, I get stuck again with plotedit coming on and for every figure I have to manually go and turn plotedit off in order to continue.
What am I doing wrong?
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Graphics Object Identification 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!