Filter löschen
Filter löschen

Text box as subplot

72 Ansichten (letzte 30 Tage)
Jelle van Zuijlen
Jelle van Zuijlen am 26 Mär. 2015
Kommentiert: Jelle van Zuijlen am 26 Mär. 2015
I would like to insert a textbox as a subplot in my figure. I have a figure with 3 graphs and the fourth subplot I would like to insert a textbox with exlpanantion.
Many thanks

Akzeptierte Antwort

Ilham Hardy
Ilham Hardy am 26 Mär. 2015
Something like this?
figure(1)
p1 = subplot(4,1,1);
p2 = subplot(4,1,2);
p3 = subplot(4,1,3);
p4 = subplot(4,1,4);
text(0.5,0.5,'Explanation'); axis off
  2 Kommentare
Ilham Hardy
Ilham Hardy am 26 Mär. 2015
Bearbeitet: Ilham Hardy am 26 Mär. 2015
Jelle,
position can be changed based on you axis setting.
If you change the part axis off to axis on you can see that the text location is at x=0.5 and y=0.5 which corresponds with text( 0.5,0.5 ,'Explanation');
Jelle van Zuijlen
Jelle van Zuijlen am 26 Mär. 2015
Yes I figured that out already. Many thanks!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

Jelle van Zuijlen
Jelle van Zuijlen am 26 Mär. 2015
yes, actuallt pretty much like that! But how can i change the position?

Community Treasure Hunt

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

Start Hunting!

Translated by