Changeset 231 for trunk/src/plot_field.m


Ignore:
Timestamp:
Apr 5, 2011, 12:46:34 AM (10 years ago)
Author:
sommeria
Message:

interactive test for piv introduced various bug corrections

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/plot_field.m

    r227 r231  
    10931093        end
    10941094        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 axes
    1101         PlotParamOut.RangeY=[min(YMin) max(YMax)]; %range of x, to be stored in the user data of the plot axes
     1095            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
    11021102    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;
    11071107        if XMax>XMin
    11081108            set(haxes,'XLim',[XMin XMax]);% set x limits of frame in axes coordinates
Note: See TracChangeset for help on using the changeset viewer.