Changeset 316 for trunk/src/uvmat.m
- Timestamp:
- Dec 4, 2011, 5:54:17 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/uvmat.m
r315 r316 2552 2552 %PlotParam{1}=read_plot_param(handles);%read plotting parameters on the uvmat interfac 2553 2553 PlotParam{1}=read_GUI(handles.uvmat); 2554 if ~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'}; 2562 end 2554 2563 keeplim(1)=get(handles.CheckFixLimits,'Value');% test for fixed graph limits 2555 2564 PosColorbar{1}=UvData.OpenParam.PosColorbar;%prescribe the colorbar position on the uvmat interface … … 2572 2581 iobj=IndexObj(imap); 2573 2582 [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 2577 2584 if ~isempty(errormsg) 2578 2585 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; 2579 2592 end 2580 2593 %use of mask (TODO: check) … … 3870 3883 Amax=double(max(max(max(FieldHisto))));%max of image 3871 3884 if isequal(Amin,Amax) 3872 msgbox_uvmat('WARNING',['uniform field =' num2str(Amin)]); 3885 %msgbox_uvmat('WARNING',['uniform field =' num2str(Amin)]); 3886 cla(haxes) 3873 3887 else 3874 3888 Histo.ListVarName={FieldName,'histo'}; … … 4077 4091 %------------------------------------------------------------------------ 4078 4092 set(handles.CheckFixVecColor,'Value',1) 4079 AutoVecColor_Callback(hObject, eventdata, handles)4093 CheckFixVecColor_Callback(hObject, eventdata, handles) 4080 4094 min_val=str2num(get(handles.num_MinVec,'String')); 4081 4095 max_val=str2num(get(handles.num_MaxVec,'String'));
Note: See TracChangeset
for help on using the changeset viewer.