Is there a way to put a field of text in an empty subplot location?

6 visualizzazioni (ultimi 30 giorni)
I have three plots displayed using subplot(2,2,N) where N takes on the values of 1, 2 or 3. This leaves the area of the 4th subplot empty. Is there a way to put text into that position? I do not want the text to be a figure legend for all three plots, but rather more arbitrary text. I tried to use " title = 'text' " or " xlabel = 'text' " without any sort of actual plot command, but I still see x/y axes with my text in the appropriate location.

Risposta accettata

Walter Roberson
Walter Roberson il 30 Ago 2017
If you subplot(2,2,4) then you can text() things into existence there.
You could also consider using subplot(2,2,4) to create an axes, then getting its OuterPosition property, then deleting the axes, and then creating a uicontrol('style','text') in that position.

Più risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by