Changeset 215 for trunk/src/uvmat.m


Ignore:
Timestamp:
Mar 8, 2011, 11:36:29 PM (13 years ago)
Author:
sommeria
Message:

proj_field: correct the projection mode filter on a line
uvmat: correct bug for avi movies extraction
imadoc2struct: cleaning

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/uvmat.m

    r210 r215  
    234234%UvData.Object{1}.Style='plane';%main plotting plane
    235235UvData.Object{1}.ProjMode='projection';%main plotting plane
    236 if ~isfield(UvData.Object{1},'plotaxes')
    237     UvData.Object{1}.plotaxes=handles.axes3;%default plotting axis
    238     set(handles.list_object_1,'Value',1);
    239    % set(handles.list_object_1,'String',{'1-PLANE'});
    240    set(handles.list_object_1,'String',{''});
    241 end
     236% if ~isfield(UvData.Object{1},'plotaxes')
     237%     UvData.Object{1}.plotaxes=handles.axes3;%default plotting axis
     238%     set(handles.list_object_1,'Value',1);
     239%    % set(handles.list_object_1,'String',{'1-PLANE'});
     240%    set(handles.list_object_1,'String',{''});
     241% end
    242242set(handles.Fields,'Value',1)
    243243set(handles.Fields,'string',{''})
     
    25292529    set(handles.list_object_1,'String',{''});
    25302530end
    2531 if ~isfield(UvData.Object{1},'plotaxes')
    2532     UvData.Object{1}.plotaxes=handles.axes3;%default plotting axis
    2533 end
     2531% if ~isfield(UvData.Object{1},'plotaxes')
     2532%     UvData.Object{1}.plotaxes=handles.axes3;%default plotting axis
     2533% end
    25342534testnewseries=UvData.NewSeries;
    25352535UvData.NewSeries=0;% put to 0 the test for a new field series (set by RootPath_callback)
     
    25512551end
    25522552plot_handles{1}=handles;
    2553 haxes(1)=handles.axes3;
     2553if isfield(UvData,'plotaxes')%case of movies
     2554    haxes(1)=UvData.plotaxes;
     2555else
     2556    haxes(1)=handles.axes3;
     2557end
    25542558PlotParam{1}=read_plot_param(handles);%read plotting parameters on the uvmat interfac
    25552559keeplim(1)=get(handles.FixLimits,'Value');% test for fixed graph limits
     
    44754479msgbox_uvmat('INPUT_Y-N',{['adjust figure ' num2str(newfig) ' with its matlab edit menu '] ;...
    44764480        ['then press OK to get the avi movie as a copy of figure ' num2str(newfig) ' display']});
    4477 UvData.Object{1}.plotaxes=newaxes;% the axis in the new figure becomes the current main plotting axes
     4481UvData.plotaxes=newaxes;% the axis in the new figure becomes the current main plotting axes
    44784482set(huvmat,'UserData',UvData);
    44794483increment=str2double(get(handles.increment_scan,'String')); %get the field increment d
     
    45094513    end
    45104514end
    4511 close(aviobj);
    4512 UvData.Object{1}.plotaxes=handles.axes3;
     4515aviobj=close(aviobj);
     4516UvData=rmfield(UvData,'plotaxes');
     4517%UvData.Object{1}.plotaxes=handles.axes3;
    45134518set(huvmat,'UserData',UvData);
    45144519msgbox_uvmat('CONFIRMATION',{['movie ' aviname ' created '];['with ' num2str(imax) ' frames']})
Note: See TracChangeset for help on using the changeset viewer.