Labels
Hereafter are presented the available options to add labels to the points of two and three dimensional graphs in mathlayer®.
Labels
Options | Description | Values | Default Values |
labels | A cell array of strings defining labels for a group of points. | Cell array of strings. | empty |
labelsAnchor | Define where the text starts with respect to each tick. | 'start', 'middle' or 'end'. | 'start' |
labelsFont | Set the font and size of the labels. | Any number with its units followed by any font. | '0.7em arial' |
x = [1:3;1:3] y = [4,4,4;5,5,5] z = [1:3;4:6] L = struct('txt',{'a','b','c','d','e','f'}) LL = struct('txt',{'A','B','C','D','E','F'}) o = struct% initializing options struct
o.labels = L o.markerSize = 2 o.markerFill = 'yellow' o1 = struct% initializing options struct
o1.markerSize = 4 o2 = struct% initializing options struct
o2.labels = LL o2.markerSize = 6 o2.markerFill = 'blue' o2.labelsFont = '1.5em calibri' scatter3({x x x+2},y,{z z+2 z},{o o1 o2})