Is there a way to put a field of text in an empty subplot location?
6 views (last 30 days)
Show older comments
David Morgan
on 30 Aug 2017
Commented: David Morgan
on 30 Aug 2017
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.
0 Comments
Accepted Answer
Walter Roberson
on 30 Aug 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.
More Answers (0)
See Also
Categories
Find more on Subplots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!