[8] | 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 | |
---|
[809] | 9 | %======================================================================= |
---|
[1126] | 10 | % Copyright 2008-2024, LEGI UMR 5519 / CNRS UGA G-INP, Grenoble, France |
---|
[809] | 11 | % http://www.legi.grenoble-inp.fr |
---|
[1127] | 12 | % Joel.Sommeria - Joel.Sommeria (A) univ-grenoble-alpes.fr |
---|
[809] | 13 | % |
---|
| 14 | % This file is part of the toolbox UVMAT. |
---|
| 15 | % |
---|
| 16 | % UVMAT is free software; you can redistribute it and/or modify |
---|
| 17 | % it under the terms of the GNU General Public License as published |
---|
| 18 | % by the Free Software Foundation; either version 2 of the license, |
---|
| 19 | % or (at your option) any later version. |
---|
| 20 | % |
---|
| 21 | % UVMAT is distributed in the hope that it will be useful, |
---|
| 22 | % but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
| 23 | % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
| 24 | % GNU General Public License (see LICENSE.txt) for more details. |
---|
| 25 | %======================================================================= |
---|
| 26 | |
---|
[8] | 27 | function close_fig(ggg,eventdata,hparent,type) |
---|
| 28 | if isequal(type,'zoom') |
---|
| 29 | delete(hparent) % delete the rectangle showing the zoom graph in the parent fig |
---|
[809] | 30 | end |
---|