How do I get a row of labels underneath my xticklabel
?
ie patient 1, 2 3 4?
This shows how to get the grouped labels but I can't quite work it out for this example :
How can I adjust 3-D bar grouping and y-axis labeling in MATLAB?
How do I get a row of labels underneath my xticklabel
?
ie patient 1, 2 3 4?
This shows how to get the grouped labels but I can't quite work it out for this example :
How can I adjust 3-D bar grouping and y-axis labeling in MATLAB?
For your case, the usage of the function text()
will be as follows:
text(3,-.1,'Patient1');
text(10,-.1,'Patient2');
The first number is x-coordinate in axis units and the second one is y-coordinate. Thus, the sign minus stands to denote that the position of the text is below the axis.