Changeset 2115 in Sophya for trunk/SophyaPI/PIext/pigfd1.cc
- Timestamp:
- Jul 17, 2002, 11:59:50 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PIext/pigfd1.cc
r2092 r2115 3 3 #include <stdio.h> 4 4 #include "pigfd1.h" 5 6 #define PERC_GARDE 0.027 5 8 6 /* --Methode-- */ … … 42 40 if(mGFD->NData()<=0) return; 43 41 if(VarX<0) return; 44 double dx, dy;45 42 double xmin=9.e19, xmax=-9.e19, ymin=9.e19, ymax=-9.e19; 46 43 mGFD->GetMnMx(10*VarX+2,xmin,xmax); … … 48 45 if(xmax<=xmin) xmax = xmin+1.; 49 46 if(ymax<=ymin) ymax = ymin+1.; 50 dx = PERC_GARDE*(xmax-xmin);51 dy = PERC_GARDE*(ymax-ymin);52 SetLimits( (double)xmin-dx,(double)xmax+dx,(double)ymin-dy,(double)ymax+dy);47 PIAxes::ReSizeMinMax(isLogScaleX(),xmin,xmax); 48 PIAxes::ReSizeMinMax(isLogScaleY(),ymin,ymax); 49 SetLimits(xmin,xmax,ymin,ymax); 53 50 SetAxesFlags(kBoxAxes | kExtTicks | kLabels); 54 51 }
Note:
See TracChangeset
for help on using the changeset viewer.