Effacer les filtres
Effacer les filtres

Text output in subplot

24 vues (au cours des 30 derniers jours)
as hz
as hz le 23 Sep 2012
Hi,
I have a graph composed of subplot (3x2) and I wish to add an extra data (results of calculations, 4 variables) instead of a graph at position (3, 2, 5).
How can I do it?
Thanks.

Réponse acceptée

Robert Cumming
Robert Cumming le 24 Sep 2012
ax = subplot(3, 2, 5);
text(0.5,0.5,countstr);
set ( ax, 'visible', 'off')

Plus de réponses (1)

Walter Roberson
Walter Roberson le 23 Sep 2012
call subplot() as usual to create the axis for the text. text() the data into place. You might want to take advantage of http://www.mathworks.com/help/matlab/ref/text.html:
When specifying the string for a single text object, cell arrays of strings and padded string matrices result in a text object with a multiline string, while vertical slash characters are not interpreted as separators and result in a single line string containing vertical slashes.
  1 commentaire
as hz
as hz le 24 Sep 2012
Hi,
I used this example:
subplot(3, 2, 5);
text(0.5,0.5,countstr);
And I get the X and Y axis scales. How can they be removed?
Thanks

Connectez-vous pour commenter.

Community Treasure Hunt

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

Start Hunting!

Translated by