0

How do I get a row of labels underneath my xticklabel? ie patient 1, 2 3 4?

enter image description here 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?

Community
  • 1
  • 1
HCAI
  • 2,213
  • 8
  • 33
  • 65

1 Answers1

1

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.

freude
  • 3,632
  • 3
  • 32
  • 51