Changeset 1200 for trunk/src/mouse_up.m
- Timestamp:
- Mar 20, 2026, 4:42:36 PM (22 hours ago)
- File:
-
- 1 edited
-
trunk/src/mouse_up.m (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/mouse_up.m
r1180 r1200 151 151 else 152 152 hhview_field=guidata(hview_field); 153 [ PlotType,PlotParam]=plot_field(ProjData,hhview_field.PlotAxes,read_GUI(hview_field));%update an existing plot in view_field153 [~,PlotParam]=plot_field(ProjData,hhview_field.PlotAxes,read_GUI(hview_field));%update an existing plot in view_field 154 154 errormsg=fill_GUI(PlotParam,hview_field); 155 155 end … … 168 168 else 169 169 UvData.PlotAxes=ProjData; 170 [ PlotType,PlotParam]=plot_field(ProjData,hhuvmat.PlotAxes,read_GUI(huvmat));%update an existing field plot170 [~,PlotParam]=plot_field(ProjData,hhuvmat.PlotAxes,read_GUI(huvmat));%update an existing field plot 171 171 errormsg=fill_GUI(PlotParam,huvmat); 172 172 end … … 201 201 202 202 %% creation or update of a zoom sub-plot 203 if CheckZoomFig && isequal(get(hcurrentfig,'SelectionType'),'normal')&&...%if left button has been pressed203 CheckZoomFigActivate=CheckZoomFig && strcmp(get(hcurrentfig,'SelectionType'),'normal')&&...%if left button has been pressed 204 204 ~isempty(CurrentOrigin) && ~isequal(CurrentOrigin(1),xy(1,1)) && ~isequal(CurrentOrigin(2),xy(1,2))%if mouse moved in x and y since presed down 205 if CheckZoomFigActivate 205 206 hparentfig=hcurrentfig; 206 207 %open or update a new zoom figure if a rectangle has been drawn 207 208 if ishandle(hcurrentaxes) 208 209 if isfield(AxeData,'CurrentRectZoom') && ~isempty(AxeData.CurrentRectZoom) && ishandle(AxeData.CurrentRectZoom) 209 %PosRect=get(AxeData.CurrentRectZoom,'Position');210 210 if isfield(AxeData,'CurrentVec') && ~isempty(AxeData.CurrentVec) && ishandle(AxeData.CurrentVec) 211 211 delete(AxeData.CurrentVec) … … 391 391 %------------------------------------------------------------------------ 392 392 function close_fig(ggg,eventdata,hparent) 393 394 hfig=get(get(hparent,'parent'),'parent'); 395 hbutton=findobj(hfig,'Tag','CheckZoomFig'); 396 if ~isempty(hbutton) 397 set(hbutton,'Value',0)% desactivate the zoom fig option 398 end 399 delete(hparent) % delete the rectangle showing the zoom graph in the parent fig 400 393 if isvalid(hparent) 394 figparent=get(hparent,'parent'); 395 if ~isempty(figparent) 396 hfig=get(figparent,'parent'); 397 hbutton=findobj(hfig,'Tag','CheckZoomFig'); 398 if ~isempty(hbutton) 399 set(hbutton,'Value',0)% desactivate the zoom fig option 400 end 401 delete(hparent) % delete the rectangle showing the zoom graph in the parent fig 402 end 403 end
Note: See TracChangeset
for help on using the changeset viewer.
