Revert to default interactivity in Figure/axes
4 次查看(过去 30 天)
显示 更早的评论
Hi ML gurus
I have a figure with axis which shows multiple plots, with extensive custom interactivity (I have custom-defined WindowButtonUpFcn, KeyPressFcn, DeleteFcn, WindowButtonMotionFcn, HitTest etc etc). Occasionally, I save the figure for a talk/presentation as a standalone matlab fig file. When saved as a standalone file, all the interactive callbacks like WindowButtonUpFcn are no longer functional, and I do not need that functionality anymore. However, the definitions remain, and when I try to use default matlab editing functions with the standalone plot (e.g. to change colors/thicknesses of lines, etc) I get numerous error messages, since the callbacks are no longer defined with the current variable space. I can write a scrtipt to pull out the data from the existing fig and to create a brand new one. But I wonder if would if it possible to revert all callblacks to their underfined states upon saving a figure instance?
Cheers!
0 个评论
回答(1 个)
另请参阅
类别
在 Help Center 和 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!