If both the x and y axis are numbers, I can display text on the plot by using the functions `num2str`, `cellstr`, and `strtrim`. These functions format the coordinate values into a cell array of strings, which can then be displayed with the function `text`:

```
strValues = strtrim(cellstr(num2str(
  [X(:) Y(:)],
  '(%d,%d)'
)));
text(
  X,
  Y,
  strValues,
 'VerticalAlignment',
 'bottom'
);

```

But what if the x axis contains strings instead of numbers?

```
X=['john' 'jack' 'mary'.....] 
Y=[0 1 2 3]

```

How do I then show the y values on all of the data plots?