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: use setmaskt to assign labels to the points of a dataset. setmaskt has to preceed show.

That is, first you call setmaskt to assign labels to the datapoints. Then you call show

to plot the labeled data.


Link:
Usage: setmaskt(data, labels, color, direction, size)
Input:
data a (n x p) data matrix
labels a (n x 1) vector of strings
color either a scalar integer (all labels get the same color), or a (n x 1) vector of integers (each label gets the color associated with the integer in the corresponding row); 0 is black, 1 is blue, 2 is green, 3 is cyan, 4 is red, 5 is magenta, 6 is yellow, 7 is white
direction either a scalar integer (all labels have the same position relative to their corresponding datapoint) or a (n x 1) vector of integers (each label gets the position associated with the integer in the corresponding row) -1 is for no label at all, 0 is for centered label, 3 is for a label to the right of the corresponding datapoint, 6 is for a label below the corresponding datapoint, 9 is for a label to the left of the corresponding datapoint, 12 is for a label above the corresponding datapoint,
size either a scalar integer (all labels have the same size) or a (n x 1) vector of integers (each label gets the size associated with the integer in the corresponding row); XploRe4 supports the font sizes: 12 ... 16

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:



you see 6 datapoints with labels that have various layouts


Group: Plot Manipulation
See also: setmaskp setmaskl 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, 21.9.2000