Changeset 231 for trunk/src/plot_field.m
- Timestamp:
- Apr 5, 2011, 12:46:34 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/plot_field.m
r227 r231 1093 1093 end 1094 1094 if test_vec 1095 XMin= [XMin min(vec_X)];1096 XMax= [XMax max(vec_X)];1097 YMin= [YMin min(vec_Y)];1098 YMax= [YMax max(vec_Y)];1099 end 1100 PlotParamOut.RangeX=[ min(XMin) max(XMax)]; %range of x, to be stored in the user data of the plot axes1101 PlotParamOut.RangeY=[ min(YMin) max(YMax)]; %range of x, to be stored in the user data of the plot axes1095 XMin=min(XMin,min(vec_X)); 1096 XMax=max(XMax,max(vec_X)); 1097 YMin=min(YMin,min(vec_Y)); 1098 YMax=max(YMax,max(vec_Y)); 1099 end 1100 PlotParamOut.RangeX=[XMin XMax]; %range of x, to be stored in the user data of the plot axes 1101 PlotParamOut.RangeY=[YMin YMax]; %range of x, to be stored in the user data of the plot axes 1102 1102 if ~fix_lim 1103 PlotParamOut.MinX= min(XMin);1104 PlotParamOut.MaxX= max(XMax);1105 PlotParamOut.MinY= min(YMin);1106 PlotParamOut.MaxY= max(YMax);1103 PlotParamOut.MinX=XMin; 1104 PlotParamOut.MaxX=XMax; 1105 PlotParamOut.MinY=YMin; 1106 PlotParamOut.MaxY=YMax; 1107 1107 if XMax>XMin 1108 1108 set(haxes,'XLim',[XMin XMax]);% set x limits of frame in axes coordinates
Note: See TracChangeset
for help on using the changeset viewer.