Home > . > close_fig.m

# close_fig

## PURPOSE

'close_fig': function activated when a figure is closed

## SYNOPSIS

function close_fig(ggg,eventdata,hparent,type)

## DESCRIPTION

    'close_fig': function  activated when a figure is closed
    ----------------------------------------------------------------
     function close_fig(ggg,eventdata,hparent,type)
     activated by the command:
    set(hObject,'DeleteFcn',{@close_fig,hparent,type})
     where hObject is the handle of the figure

## CROSS-REFERENCE INFORMATION

This function calls:

This function is called by:

- mouse_up 'mouse_up': function activated when the mouse button is released

## SOURCE CODE

    0001 %'close_fig': function  activated when a figure is closed
    0002 %----------------------------------------------------------------
    0003 % function close_fig(ggg,eventdata,hparent,type)
    0004 % activated by the command:
    0005 %set(hObject,'DeleteFcn',{@close_fig,hparent,type})
    0006 % where hObject is the handle of the figure
    0007 %
    0008
    0009 function close_fig(ggg,eventdata,hparent,type)
    0010 if isequal(type,'zoom')
    0011     delete(hparent)  % delete the rectangle showing the zoom graph in the parent fig
    0012 end