Contents - Index


PLOTSCALEMIN and PLOTSCALEMAX

 

 

The PlotScaleMin and PlotScaleMax functions return the rminimum and maximum value of the specified axis.  The format is

 

PlotScaleMin(PlotName$,Axis$) 

PlotScaleMax(PlotName$,Axis$)

 

PlotName$ is the name of the plot that is displayed on the tab at the top of the plot window. This parameter can be a string constant within single quotes or a predefined string variable.

 

Axis$ indicates which axis the value refers to.  Axis$ can be 'X', 'X1', 'X2', 'Y', 'Y1', or 'Y2'.  The 2 refers to the 2nd axis if present.  For example, Y2 refers to the axis on the right of the plot.   This parameter can be a string constant within single quotes or a predefined string variable.

 

Example:  

 

{This example will use a macro to display a P-h plot determine the minimum and max pressures}

$UnitSystem SI K

$RunMacroAfter

DeletePlot 1

F$='Acetone'

PropPlot F$ PH 6 310 340 380 420 460 510 0 DoQLines

$endMacro

P$=plottabname$(0)

PMin=plotscalemin(P$, 'Y')

PMax=plotscalemax(P$, 'Y')