source: trunk/src/close_fig.m @ 2

Last change on this file since 2 was 2, checked in by gostiaux, 14 years ago
  • Initial import
  • Add .m files in src
  • Add .fig files in src
  • Add .xml config files
File size: 459 bytes
Line 
1%'close_fig': function  activated when a figure is closed
2%----------------------------------------------------------------
3% function close_fig(ggg,eventdata,hparent,type)
4% activated by the command:
5%set(hObject,'DeleteFcn',{@close_fig,hparent,type})
6% where hObject is the handle of the figure
7%
8
9function close_fig(ggg,eventdata,hparent,type)
10if isequal(type,'zoom')
11    delete(hparent)  % delete the rectangle showing the zoom graph in the parent fig
12end
Note: See TracBrowser for help on using the repository browser.