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

    r2092 r2115  
    44#include <stdio.h>
    55#include "pistlist.h"
    6 
    7 #define PERC_GARDE 0.02
    86
    97//++
     
    8482
    8583  // Commencer par trouver nos limites
    86   double dx, dy;
    87   double x1, x2, y1, y2;
     84  double x1,x2,y1,y2;
    8885  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);
    9489  SetAxesFlags(kBoxAxes | kExtTicks | kLabels);
    9590}
Note: See TracChangeset for help on using the changeset viewer.