Borrar filtros
Borrar filtros

Subplot - adding alpha-numeric data

1 visualización (últimos 30 días)
Tom
Tom el 19 de Abr. de 2012
I have a 2x3 subplot with 4 graphs in 1,2,4,5 with 3 and 6 empty for the results I want to add. I was wondering whether it is possible, and if so how, to input this text on the side?
Any help would be greatly appreciated.

Respuestas (2)

Rick Rosson
Rick Rosson el 19 de Abr. de 2012
>> doc text
>> doc title
>> doc xlabel
>> doc ylabel
>> doc uicontrol
  2 comentarios
Tom
Tom el 19 de Abr. de 2012
hmm, how would I implement a text or uicontrol so that it goes in the upper right hand quadrant?
Rick Rosson
Rick Rosson el 20 de Abr. de 2012
What have you tried so far? Did you review the documentation and try to come up with some code that does what you want? If so, did it work?

Iniciar sesión para comentar.


Walter Roberson
Walter Roberson el 20 de Abr. de 2012
text() can only specify data coordinates. There are no data coordinates that will always mean "upper right hand quadrant", so the position of text() is always going to depend upon the current axis limits, zoom, and pan.
uicontrol() can use 'Units', 'normalized', with coordinates [1 1] to mean the upper right corner. In such a case, though, the coordinates would be relative to the containing object (most often a figure): uicontrol cannot be contained within an axes. You can thus use uicontrol() to create text that has a set position relative to the figure, but not a set position relative to an axes border, other than coincidentally. I am assuming here that you do not want the uicontrol() to be exactly the same size as the axes (in which case you could use linkprop() to force them to maintain the same position and size.)
You might be able to get a little further towards consistent placement by inserting both the uicontrol and the axes into a uipanel(), perhaps.
But perhaps all you need is to title() or ylabel() the subplots ??

Categorías

Más información sobre Migrate GUIDE Apps en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by