|
From: Gary on 7 May 2008 11:21 I use GUIDE to create GUI layouts, then share data between functions using getappdata/setappdata using the figure handle If I accidentally hit CTRL-S while the GUI is the active window, I end up saving the contents of the plots, controls, and appdata in the fig file that is associated with the GUI. Every time I run the code after that, the figure flashes with the saved data in the plots before being cleared. Removing all that saved data is a pain in the neck. First, a question - is using the figure handle for getappdata/setappdata considered bad form? Even if I used something else, I think that I would still have the problem of the plot data saved in the plot ui objects. Now for the suggestion: It seems to me that what you're creating in GUIDE isn't a figure in the same sense as what you get when you perform a "Save" operation on a figure. Instead, it is a template for such a figure. Why not call the files created by GUIDE '.fgt' for figure template. It seems to better fit the purpose of GUIDE and would have the added benefit of making it much harder for me to accidentally save over the GUIDE-generated file. Am I the only one who's done this? Gary
|
Pages: 1 Prev: How do you hold the legend with the figure? Next: dialog/message box with time out function |