Changeset 2115 in Sophya for trunk/SophyaPI/PIext/pintuple.cc


Ignore:
Timestamp:
Jul 17, 2002, 11:59:50 PM (23 years ago)
Author:
cmv
Message:

ResizeMinMax: cmv 17/07/2002

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PIext/pintuple.cc

    r2092 r2115  
    55#include <stdio.h>
    66#include "pintuple.h"
    7 
    8 #define PERC_GARDE 0.02
    97
    108//++
     
    126124
    127125  // Commencer par trouver nos limites
    128   double dx, dy;
    129126  double xmin, xmax, ymin, ymax;
    130127  xmin = ymin = 9.e19;
     
    132129  mNT->GetMinMax(xK, xmin, xmax);
    133130  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);
    139134//  SetAxesFlags(kBoxAxes | kExtTicks | kLabels);  Ne pas faire - Reza 11/99
    140135}
     
    175170nok = 0; 
    176171xp = yp = xl = yl = 0;
    177 for (int i=0; i<mNT->NbLines(); i++) {
     172for (long i=0; i<(long)mNT->NbLines(); i++) {
    178173  xl = xp;  yl = yp;
    179174  xp = mNT->GetCell(i, xK);
     
    247242info += buff;
    248243info += mNT->LineHeaderToString();
    249 for (int i=0; i<mNT->NbLines(); i++) {
     244for(long i=0; i<(long)mNT->NbLines(); i++) {
    250245  xp = mNT->GetCell(i, xK);
    251246  yp = mNT->GetCell(i, yK);
Note: See TracChangeset for help on using the changeset viewer.