0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013 function PlotParam=read_plot_param(handles)
0014
0015 PlotParam.Auto_xy=get(handles.auto_xy,'Value');
0016
0017
0018 Scalar.MaxA=str2double(get(handles.MaxA,'String'));
0019 Scalar.MinA=str2double(get(handles.MinA,'String'));
0020 Scalar.AutoScal=get(handles.AutoScal,'Value');
0021 Scalar.BW=get(handles.BW,'Value');
0022 Scalar.Contours=get(handles.Contours,'Value')==2;
0023 Scalar.IncrA=str2double(get(handles.IncrA,'String'));
0024 PlotParam.Scalar=Scalar;
0025
0026
0027 Vectors.VecScale=str2double(get(handles.VecScale,'String'));
0028 Vectors.AutoVec=get(handles.AutoVec,'Value');
0029 Vectors.HideFalse=get(handles.HideFalse,'Value');
0030 Vectors.HideWarning=get(handles.HideWarning,'Value');
0031 Vectors.decimate4=get(handles.decimate4,'Value');
0032
0033
0034 code_list=get(handles.color_code,'String');
0035 val=get(handles.color_code,'Value');
0036
0037
0038 colcode1=str2double(get(handles.colcode1,'String'));
0039 colcode2=str2double(get(handles.colcode2,'String'));
0040
0041 Vectors.ColorCode=code_list{val};
0042 Vectors.FixedCbounds=get(handles.AutoVecColor,'Value');
0043 Vectors.MinC=str2num(get(handles.min_vec,'String'));
0044 Vectors.MaxC=str2num(get(handles.max_vec,'String'));
0045 if Vectors.MaxC <= Vectors.MinC
0046 Vectors.ColorCode='black';
0047 else
0048 Vectors.colcode1=Vectors.MinC+(colcode1-Vectors.MinC)/(Vectors.MaxC-Vectors.MinC);
0049 Vectors.colcode2=Vectors.MinC+(colcode2-Vectors.MinC)/(Vectors.MaxC-Vectors.MinC);
0050 end
0051 PlotParam.Vectors=Vectors;
0052