Changeset 1183 for trunk/src/uvmat.m


Ignore:
Timestamp:
Nov 3, 2025, 2:54:33 PM (5 weeks ago)
Author:
sommeria
Message:

bed_scan added + bug repairs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/uvmat.m

    r1182 r1183  
    1313
    1414%=======================================================================
    15 % Copyright 2008-2024, LEGI UMR 5519 / CNRS UGA G-INP, Grenoble, ileSeriesrance
     15% Copyright 2008-2024, LEGI UMR 5519 / CNRS UGA G-INP, Grenoble, France
    1616%   http://www.legi.grenoble-inp.fr
    1717%   Joel.Sommeria - Joel.Sommeria (A) univ-grenoble-alpes.fr
     
    536536function MenuExportFigure_Callback(hObject, eventdata, handles)
    537537%------------------------------------------------------------------------
    538 hfig=figure;
    539 hc=copyobj(handles.PlotAxes,hfig);
    540 set(hc,'Position',[0.1 0.1 0.8 0.8])
     538hfig=figure;%create a new figure
     539hc=copyobj(handles.PlotAxes,hfig);%copy the current axis content on the new fig
     540set(hc,'Position',[0.1 0.1 0.8 0.8])% adjust the position of the axis on the figure
    541541title_menu=get(handles.FieldName,'String');
    542 title_string=title_menu{get(handles.FieldName,'Value')};
     542title_string=title_menu{get(handles.FieldName,'Value')};% get the name of the plotted field
    543543title(title_string);
     544set(hc,'FontSize',16); %set the sdize of titles and labels
     545
     546%% copy the colormap to the new fig if relevant
    544547h=findobj(handles.PlotAxes,'tag','ima'); %look for image in the plot
    545 if ~isempty(h)
     548if ~isempty(h)% copy the colorbar to the new fig if relevant
    546549    map=colormap(handles.PlotAxes);
    547550    colormap(map);%transmit the current colormap to the new fig
     
    28782881else
    28792882    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 FileSeries
     2883    if isfield(UvData,'XmlData')&& isfield(UvData.XmlData{1},'FileSeries')
    28812884        i1=str2double(get(handles.i1,'String'));
    28822885        j1=str2double(get(handles.j1,'String'));
    28832886        NbField_j_cell=get(handles.MaxIndex_j,'String');
    28842887        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 files
     2888        [RootFile,index_string,FrameIndex]=index2filename(UvData.XmlData{1}.FileSeries,i1,j1,NbField_j);
    28862889        set(handles.RootFile,'String',RootFile)
    28872890    else
Note: See TracChangeset for help on using the changeset viewer.