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....



ScaleNY


Unit:SDL_rchart
Class:TRChart
Declaration:property Scale1Y: TScalePropsVert;
property Scale2Y: TScalePropsVert;
property Scale3Y: TScalePropsVert;
property Scale4Y: TScalePropsVert;

The properties Scale1Y to Scale4Y define the form and layout of the four published vertical scales. They contain the following published sub-properties, most of them being directly related to the TScale class (which actually displays the scale):

Caption: string; Caption of the scale
CaptionPosX: integer; horizontal offset of the caption
CaptionPosY: integer; vertical offset of the caption
CaptionAlignment: TAlignment; alignment of the caption text
CaptionAnchor: TScaleUnitAnchor; anchor of caption text
Center: double; returns the center of the scale
ColorScale: TColor; color of the scale
DateFormat: TDTLabel; format of date and time labels
DecPlaces: integer; number of decimal places used for scale labels
Font: TFont; font of scale labels
Logarithmic: boolean; scale is logarithmic if set TRUE
LabelType: TFigType; kind of label
MinTicks: integer; minimum number of tick marks
MinRange: double; defines the minimum range the y-axis has to span. This property can be used to prevent users from zooming too much into the data. MinRange is set to 10-10, by default.
MouseAction: TMouseActMode; facilitates interactive zooming and panning of the scale. This property may take one of the following values: maNone, maPan, maZoom and maZoomDrag. For details, see TScale.MouseAction.
RangeLow: double; left or bottom value of the scale. If the new value of RangeLow would result in an axis which covers a range smaller than MinRange, RangeHigh is automatically adjusted to span the minimum range as defined by MinRange.
RangeHigh: double; right or top value of the scale. If the new value of RangeHigh would result in an axis which covers a range smaller than MinRange, RangeLow is automatically adjusted to span the minimum range as defined by MinRange.
ShortTicks: boolean; displays short tick marks between scale ticks
ScaleInscript: string; extra text for each text label
property ScaleLocation: TScaleLocationVert; controls the location of the scale: slTop displays the scale at the top of the chart, slBottom displays it at the bottom.
ScalePos: integer; distance of the scale axis from the chart margin. A number greater than zero moves the entire scale away from the chart margin (independent of the location of the scale).
UserTickText: string; user defined scale labels
Visible: boolean; controls the visibility of the scale

Hint 1: Please note that RChart supports up to 16 x- and 16 y-axes, which can be accessed by using the properties ScalePropsX and ScalePropsY, respectively. The properties Scale1Y to Scale4Y are published copies of ScalePropsY[1] to ScalePropsY[4].

Hint 2: The Light Edition of the SDL Suite supports only two layers. Scale3Y and Scale4Y are therefore not available in the Light Edition.

Example: This property is used in the following example programs (see http://www.lohninger.com/examples.html for downloading the code): fft60hz, fft, findcent, geodata, interpol3d, multilinreg, rch2win, rchdrag, rchmouse, rchmovel, rchzoomp, rcshared, simplepca



Last Update: 2023-Dec-13