Adding additional Information to a figure/plot

13 visualizaciones (últimos 30 días)
MatlabFollower
MatlabFollower el 6 de Mzo. de 2013
Hello,
im plotting some data right now and i want to add additional info to the plot, like mean value or variance(in some space on the figure). Is that possible? Thx for any help :)

Respuestas (3)

Azzi Abdelmalek
Azzi Abdelmalek el 6 de Mzo. de 2013
Editada: Azzi Abdelmalek el 6 de Mzo. de 2013
Use text command
  1 comentario
Azzi Abdelmalek
Azzi Abdelmalek el 6 de Mzo. de 2013
I think the best way is this
[x,y]=ginput % click on the location you want+ Return
text(x,y,'yourtext')

Iniciar sesión para comentar.


MatlabFollower
MatlabFollower el 6 de Mzo. de 2013
Editada: MatlabFollower el 6 de Mzo. de 2013
Hi, thank you for your advice :) Is there a way to make matlab automatically choose a proper position for the text? because doing it by hand appears to be a bit tough
edit:
this is close to what i want so i take this one, thank you for your help :)

Robert Cumming
Robert Cumming el 6 de Mzo. de 2013
You could get the x and y limits from your plot and then calculate a position for the text from that...
Or you could put it in the title!? Or the legend!?
many options

Categorías

Más información sobre Annotations en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by