Adding specifc data labels as text strings

I am creating a strip chart for a client. The top subplot is a track chart. The blue squares are stations. I am trying to insert labels for the squares to indicate the station name. Any help would be much appreciated.

 Respuesta aceptada

Star Strider
Star Strider el 31 de Mzo. de 2016

0 votos

Use the text function. Each station has to have its own set of (x,y) coordinates.
The text function has several name-value pair options for aligning the text (such as 'HorizontalAlignment' and 'FontSize'), so the rest should be relatively straightforward.

2 comentarios

Dave Stolnis
Dave Stolnis el 31 de Mzo. de 2016
Awesome, I'll do a little help file searching on the text function and give that a try. Thanks for the lead brotha.
Star Strider
Star Strider el 31 de Mzo. de 2016
My pleasure.
It should be able to do what you want.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Etiquetas

Preguntada:

el 31 de Mzo. de 2016

Comentada:

el 31 de Mzo. de 2016

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by