Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Group: Plot Manipulation
See also: deletedata getdata show

Function: adddata
Description: Adds graphics to already plotted ones.


Usage: adddata(di, l_num, c_num, data1, data2, ...)
Input:
di Display
l_num integer, 1 ... count of lines of di
c_num integer, 1 ... count of columns of di
data1 data matrix with at least 2 columns

Example:

di=createdisplay(1, 1)
x=1:100
y=sin(x/20)+uniform(100, 1)/10
show(di, 1, 1, x~y)
knndata=x~knn(y, 10)
setmaskp(knndata, 0, 0, 0)
setmaskl(knndata,(1:rows(knndata))',0,1,1)
adddata(di, 1, 1, knndata)
Result:
The original dataset is plotted and then its knn-smoothed 

version is added as a line.

Group: Plot Manipulation
See also: deletedata getdata show

Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

(C) MD*TECH Method and Data Technologies, 17.8.2000