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: setmaskp setmaskl show

Function: setmaskt
Description: Assigns labels to the points of a data set.

Link:
Usage: setmaskt(data, labels, color, direction, size)
Input:
data n x p matrix of data which should be plotted
labels n x 1 vector of strings to label the data points
color either an integer (all labels are presented in the same color), or an (n x 1) vector of integers (each label is presented in the color associated with the integer in the corresponding row); 0 : black, 1 : blue, 2 : green, 3 : cyan, 4 : red, 5 : magenta, 6 : yellow, 7 : white
direction either an integer (all labels have the same position relative to their corresponding data points) or an (n x 1) vector of integers (each label takes the position associated with the integer in the corresponding row) -1 : no label at all, 0 : centered label, 3 : label situated at the right of the corresponding data point, 6 : label situated below the corresponding data point, 9 : label situated at the left of the corresponding data point, 12 : label situated above the corresponding data point
size either an integer (all labels have the same size) or an (n x 1) vector of integers (each label takes the size associated with the integer in the corresponding row); XploRe4 supports the font sizes 8 to 128

Note:

Example:
x=1:6
x=x~x
d=createdisplay(1, 1)
text="Right"|"Under"|"Left"|"Over"|"Center"|"No"
setmaskt(x, text, 1:6, 3|6|9|12|0|(-1), 10+2*x[,1])
show(d, 1, 1, x)

Result:
A display showing 6 data points with differently
colored labels that represent various layouts.



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