Changeset 2115 in Sophya for trunk/SophyaPI/PIext/pigfd1.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/pigfd1.cc

    r2092 r2115  
    33#include <stdio.h>
    44#include "pigfd1.h"
    5 
    6 #define PERC_GARDE 0.02
    75 
    86/* --Methode-- */
     
    4240if(mGFD->NData()<=0) return;
    4341if(VarX<0) return;
    44 double dx, dy;
    4542double xmin=9.e19, xmax=-9.e19, ymin=9.e19, ymax=-9.e19;
    4643mGFD->GetMnMx(10*VarX+2,xmin,xmax);
     
    4845if(xmax<=xmin) xmax = xmin+1.;
    4946if(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);
     47PIAxes::ReSizeMinMax(isLogScaleX(),xmin,xmax);
     48PIAxes::ReSizeMinMax(isLogScaleY(),ymin,ymax);
     49SetLimits(xmin,xmax,ymin,ymax);
    5350SetAxesFlags(kBoxAxes | kExtTicks | kLabels);
    5451}
Note: See TracChangeset for help on using the changeset viewer.