View Raw SPL
/*****************************************************************************
* *
* COMXYLABEL.SPL Copyright (C) 2015 DSP Development Corporation *
* All Rights Reserved *
* *
* Author: Randy Race *
* *
* Synopsis: Labels the X and Y axis with series comment and units *
* *
* Revisions: 27 Apr 2015 RRR Creation *
* *
*****************************************************************************/
#if @HELP_COMXYLABEL
COMXYLABEL
Purpose: Labels the X abd Y axis with the series comment and units.
Syntax: COMXYLABEL(win, commentonly, nodefault, fmt)
win - Optional. The target window. Defaults to the
current window.
commentonly - Optional. An integer, display comment only.
0: Display both comment and units (default).
1: Display comment only.
nodefault - Optional. An integer, do not display default
comment.
0: Display default comment.
1: Do not display comment if it is the default
comment (default).
fmt - Optional. An integer, the units grouping format.
0: Enclose the units in ()'s (default).
1: Enclose the units in []'s.
Example:
W1: gnorm(1000,1/1000);setvunits("V");setcomment("Channel 1")
W2: sort(gnorm(1000,1/1000),1);setvunits("W");setcomment("Channel 2")
W3: xy(W2, W1);comxylabel
Labels the X axis with the comment and units of the X
series and the Y axis with the comment and units of the Y
series.
Remarks:
COMXYLABEL is useful when reading external tabular data to
produce one or more XY series and each series comment is
set to the column headers of the table.
See Also:
Comlabel
Comxlabel
Comylabel
Getlabel
Label
Setcolheader
Setcomment
Setxlabel Setylabel
Text
Wincaption
#endif
/* label both X and Y axis with comment and units */
comxylabel(argv)
{
comxlabel(argv);
comylabel(argv);
}
comxylabel_error(errnum, errmes)
{
return(0);
}