Changeset 316 for trunk/src/uvmat.m


Ignore:
Timestamp:
Dec 4, 2011, 5:54:17 PM (12 years ago)
Author:
sommeria
Message:

a few more bugs corrected, now the new civ_matlab works for civ1,fix1, patch1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/uvmat.m

    r315 r316  
    25522552%PlotParam{1}=read_plot_param(handles);%read plotting parameters on the uvmat interfac
    25532553PlotParam{1}=read_GUI(handles.uvmat);
     2554if ~isfield(PlotParam{1},'Vectors')
     2555    PlotParam{1}.Vectors.MaxVec=1;
     2556    PlotParam{1}.Vectors.MinVec=0;
     2557    PlotParam{1}.Vectors.CheckFixVecColor=1;
     2558    PlotParam{1}.Vectors.ColCode1=0.33;
     2559    PlotParam{1}.Vectors.ColCode2=0.66;
     2560     PlotParam{1}.Vectors.ListColorScalar={'ima_cor'};
     2561     PlotParam{1}.Vectors.ListColorCode= {'rgb'};
     2562end
    25542563keeplim(1)=get(handles.CheckFixLimits,'Value');% test for fixed graph limits
    25552564PosColorbar{1}=UvData.OpenParam.PosColorbar;%prescribe the colorbar position on the uvmat interface
     
    25722581    iobj=IndexObj(imap);
    25732582    [ObjectData,errormsg]=proj_field(UvData.Field,UvData.Object{iobj});% project field on the object
    2574     if testnewseries && isfield(ObjectData,'CoordUnit')&& isfield(PlotParam{imap},'Coordinates')
    2575         PlotParam{imap}.Coordinates=rmfield(PlotParam{imap}.Coordinates,'CheckFixEqual'); %set FixEqual to depend on the field (=1 if Data.CoordUnit=1 in plot_field)
    2576     end
     2583
    25772584    if ~isempty(errormsg)
    25782585        return
     2586    end
     2587    %     if testnewseries && isfield(ObjectData,'CoordUnit')&& isfield(PlotParam{imap},'Coordinates')
     2588%         PlotParam{imap}.Coordinates=rmfield(PlotParam{imap}.Coordinates,'CheckFixEqual'); %set FixEqual to depend on the field (=1 if Data.CoordUnit=1 in plot_field)
     2589%     end
     2590    if testnewseries && isfield(ObjectData,'CoordUnit')
     2591        PlotParam{imap}.Coordinates.CheckFixEqual=1;
    25792592    end
    25802593    %use of mask (TODO: check)
     
    38703883    Amax=double(max(max(max(FieldHisto))));%max of image
    38713884    if isequal(Amin,Amax)
    3872         msgbox_uvmat('WARNING',['uniform field =' num2str(Amin)]);
     3885        %msgbox_uvmat('WARNING',['uniform field =' num2str(Amin)]);
     3886        cla(haxes)
    38733887    else
    38743888        Histo.ListVarName={FieldName,'histo'};
     
    40774091%------------------------------------------------------------------------
    40784092set(handles.CheckFixVecColor,'Value',1)
    4079 AutoVecColor_Callback(hObject, eventdata, handles)
     4093CheckFixVecColor_Callback(hObject, eventdata, handles)
    40804094min_val=str2num(get(handles.num_MinVec,'String'));
    40814095max_val=str2num(get(handles.num_MaxVec,'String'));
Note: See TracChangeset for help on using the changeset viewer.