awvAppendList
awvAppendList(w_windowID l_yListList l_xList[?exprl_exprList] [?indexl_waveIndexList] [ ?colorl_colorList] [?lineTypel_lineTypeList] [?lineStylel_lineStyleList] [?lineThicknessl_lineThicknessList] [?showSymbolsl_showList] [?dataSymboll_symbolList] [?barBaset_barBase] [?barWidtht_barWidth] [?barShiftt_barShift] [?subwindowx_subwindow] ) =>t/nil
Description
Plots y values in l_yListList against x values in l_xListList and adds the resulting waveforms to a subwindow.
The new waveforms are plotted in the same strip and y axis as their corresponding curve in l_waveIndexList. Also, the new waveforms are assigned the next lowest unassigned numbers. If l_waveIndexList contains curves 1 and 2, the curves resulting from plotting x and y values are numbered 3, 4, and so on.
If you do not specify l_waveIndexList, the new waveforms are plotted at the Y axis and strip of existing waveforms with the lowest numbers. These new waveforms are assigned the lowest unused numbers.
Arguments
Value Returned
|
Specified y-axis values are plotted against the specified x-axis values and the corresponding waveforms are displayed in the specified window. |
|
Examples
The following example creates a Waveform window and returns its window ID.
awvCreatePlotWindow()
=> window:3
The following example plots y-axis values (1, 2, 3, 4, 5) and (2, 3, 4, 5, 6) against x-axis values (1, 2, 3, 4, 5) as waveforms with names expr1 and expr2. The waveforms expr1 and expr2 are assigned with the index numbers 3 and 4, respectively.
awvPlotList(window(3) list(list(1 2 3 4 5) list(2 3 4 5 6)) list(1 2 3 4 5) ?expr list("expr1" "expr2") ?index list(3 4) ?color list("y1" "y66") ?lineType list("line" "line") ?lineStyle list("solid" "dash") ?lineThickness list("medium" "thick") ?showSymbols list(t t) ?dataSymbol list(4 5))
=> t
Note that expr1 uses a symbol corresponding to integer 4, which is a circle. expr2 uses a symbol corresponding to integer 5, which is a square.

The following function returns the index numbers and names of the waveforms plotted in the window 3.
awvGetWaveNameList(window(3))
=>
((3 4)
("expr1" "expr2")
)
The following example plots y-axis values (5, 6, 7, 8, 9) and (6, 7, 8, 9, 10) against x-axis values (2, 3, 4, 5, 6) as waveforms with names expr3 and expr4 and appends them in the Waveform window with ID 3.
awvAppendList(window(3) list(list(5 6 7 8 9) list(6 7 8 9 10)) list(2 3 4 5 6) ?expr list("expr3" "expr4") ?color list("y12" "y6") ?lineType list("line" "line") ?lineStyle list("dash" "solid") ?lineThickness list("thick" "medium") ?showSymbols list(t t) ?dataSymbol list("x" "+"))
=> t
Note that expr3 uses a symbol corresponding to character "x", which is a cross sign. expr4 uses a symbol corresponding to character "+", which is a plus sign.

The following example returns the index numbers and names of waveforms plotted in the Waveform window with ID 3.
awvGetWaveNameList(window(3))
=>
((3 4 5 6)
("expr1" "expr2" "expr3" "expr4")
)
Related Topics
Return to top