PWR.SetAxis()

Type: INSTANCE FUNCTION

Purpose: Helps to define the real-time display of a PWR object.

Associates an axis with a data column in the object. Controls linear/logarithmic formatting of the display, and allows labeling of the axis.

You must call Pwr.SetAxis for each of the axes in the real-time plot. For a y and y' versus x plot, you need three calls to Pwr.SetAxis().

Usage:

Pwr.SetAxis (AxisNo, Source, Scale, MinVal, Label, Units)
     
AxisNo INDEX

Defines which axis is being configured.

X_AXIS

Y_AXIS

Z_AXIS (This is the y-axis on an upper plot

Source INDEX A code identifying the column to be used. See the PwrDataCol() topic for a list of columns.
Scale INDEX

Indicates whether the axis is to be linear or logarithmic

LIN_AXIS

LOG_AXIS

MinVal REAL

Minimum values used in prevention of "ugly" plot scaling. MinVal is used differently depending on Scale setting. On a linear axis, this is the minimum resolution of the plot. The range of values shown on the axis cannot be smaller than MinVal. This prevents excessively fine scaling when plotting data where all the values are identical or very similar.

On a log axis, this value is substituted for zeroes in the data. This prevents infinite logarithm values.

Label STRING The label used for the axis. Short names (one or two character labels) are preferred.
Units STRING The units used for the axis. Short names are preferred.

Related Topics Link IconRelated Topics