Changeset 2115 in Sophya for trunk/SophyaPI/PIext
- Timestamp:
- Jul 17, 2002, 11:59:50 PM (23 years ago)
- Location:
- trunk/SophyaPI/PIext
- Files:
-
- 3 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 } -
trunk/SophyaPI/PIext/pintuple.cc
r2092 r2115 5 5 #include <stdio.h> 6 6 #include "pintuple.h" 7 8 #define PERC_GARDE 0.029 7 10 8 //++ … … 126 124 127 125 // Commencer par trouver nos limites 128 double dx, dy;129 126 double xmin, xmax, ymin, ymax; 130 127 xmin = ymin = 9.e19; … … 132 129 mNT->GetMinMax(xK, xmin, xmax); 133 130 mNT->GetMinMax(yK, ymin, ymax); 134 135 dx = PERC_GARDE*(xmax-xmin); 136 dy = PERC_GARDE*(ymax-ymin); 137 138 SetLimits(xmin-dx, xmax+dx, ymin-dy, ymax+dy); 131 PIAxes::ReSizeMinMax(isLogScaleX(),xmin,xmax); 132 PIAxes::ReSizeMinMax(isLogScaleY(),ymin,ymax); 133 SetLimits(xmin,xmax,ymin,ymax); 139 134 // SetAxesFlags(kBoxAxes | kExtTicks | kLabels); Ne pas faire - Reza 11/99 140 135 } … … 175 170 nok = 0; 176 171 xp = yp = xl = yl = 0; 177 for ( int i=0; i<mNT->NbLines(); i++) {172 for (long i=0; i<(long)mNT->NbLines(); i++) { 178 173 xl = xp; yl = yp; 179 174 xp = mNT->GetCell(i, xK); … … 247 242 info += buff; 248 243 info += mNT->LineHeaderToString(); 249 for (int i=0; i<mNT->NbLines(); i++) {244 for(long i=0; i<(long)mNT->NbLines(); i++) { 250 245 xp = mNT->GetCell(i, xK); 251 246 yp = mNT->GetCell(i, yK); -
trunk/SophyaPI/PIext/pistlist.cc
r2092 r2115 4 4 #include <stdio.h> 5 5 #include "pistlist.h" 6 7 #define PERC_GARDE 0.028 6 9 7 //++ … … 84 82 85 83 // Commencer par trouver nos limites 86 double dx, dy; 87 double x1, x2, y1, y2; 84 double x1,x2,y1,y2; 88 85 mStL->CalcXYLimits(x1, x2, y1, y2); 89 90 dx = PERC_GARDE*(x2-x1); 91 dy = PERC_GARDE*(y2-y1); 92 93 SetLimits(x1-dx, x2+dx, y1-dy, y2+dy); 86 PIAxes::ReSizeMinMax(isLogScaleX(),x1,x2); 87 PIAxes::ReSizeMinMax(isLogScaleY(),y1,y2); 88 SetLimits(x1,x2,y1,y2); 94 89 SetAxesFlags(kBoxAxes | kExtTicks | kLabels); 95 90 }
Note:
See TracChangeset
for help on using the changeset viewer.