The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



CalcScalePars


Unit:SDL_math1
Class: None
Declaration: procedure CalcScalePars (Ntick: integer; LowVal, HighVal: extended; varLowTick, Distance: extended; var Divi: word);

The procedure CalcScalePars calculates the label parameters for an axis defined by its lower and upper boundaries (LowVal and HighVal) and the minimum number of ticks expected (NTick). From these parameters the routine calculates the value of the lowest tick (LowTick ) and the distance between the ticks (Distance) in a way that these ticks are always located on numbers within the 1-2-5 scheme. In addition, CalcScalePars returns a proposal for the number of ticks between numeric labels (Divi).



Last Update: 2007-Mai-19