Changeset 1183 for trunk/src/uvmat.m
- Timestamp:
- Nov 3, 2025, 2:54:33 PM (5 weeks ago)
- File:
-
- 1 edited
-
trunk/src/uvmat.m (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/uvmat.m
r1182 r1183 13 13 14 14 %======================================================================= 15 % Copyright 2008-2024, LEGI UMR 5519 / CNRS UGA G-INP, Grenoble, ileSeriesrance15 % Copyright 2008-2024, LEGI UMR 5519 / CNRS UGA G-INP, Grenoble, France 16 16 % http://www.legi.grenoble-inp.fr 17 17 % Joel.Sommeria - Joel.Sommeria (A) univ-grenoble-alpes.fr … … 536 536 function MenuExportFigure_Callback(hObject, eventdata, handles) 537 537 %------------------------------------------------------------------------ 538 hfig=figure; 539 hc=copyobj(handles.PlotAxes,hfig); 540 set(hc,'Position',[0.1 0.1 0.8 0.8]) 538 hfig=figure;%create a new figure 539 hc=copyobj(handles.PlotAxes,hfig);%copy the current axis content on the new fig 540 set(hc,'Position',[0.1 0.1 0.8 0.8])% adjust the position of the axis on the figure 541 541 title_menu=get(handles.FieldName,'String'); 542 title_string=title_menu{get(handles.FieldName,'Value')}; 542 title_string=title_menu{get(handles.FieldName,'Value')};% get the name of the plotted field 543 543 title(title_string); 544 set(hc,'FontSize',16); %set the sdize of titles and labels 545 546 %% copy the colormap to the new fig if relevant 544 547 h=findobj(handles.PlotAxes,'tag','ima'); %look for image in the plot 545 if ~isempty(h) 548 if ~isempty(h)% copy the colorbar to the new fig if relevant 546 549 map=colormap(handles.PlotAxes); 547 550 colormap(map);%transmit the current colormap to the new fig … … 2878 2881 else 2879 2882 index_string=get(handles.FileIndex,'String'); 2880 if isfield(UvData,'XmlData')&& isfield(UvData.XmlData{1},'FileSeries') % The frame indexing is determined through the xml file, section FileSeries2883 if isfield(UvData,'XmlData')&& isfield(UvData.XmlData{1},'FileSeries') 2881 2884 i1=str2double(get(handles.i1,'String')); 2882 2885 j1=str2double(get(handles.j1,'String')); 2883 2886 NbField_j_cell=get(handles.MaxIndex_j,'String'); 2884 2887 NbField_j=str2double(NbField_j_cell{1}); 2885 [RootFile,index_string,FrameIndex]=index2filename(UvData.XmlData{1}.FileSeries,i1,j1,NbField_j); % convert frame index i1 j1 to index in the files2888 [RootFile,index_string,FrameIndex]=index2filename(UvData.XmlData{1}.FileSeries,i1,j1,NbField_j); 2886 2889 set(handles.RootFile,'String',RootFile) 2887 2890 else
Note: See TracChangeset
for help on using the changeset viewer.
