How do you place text in same position of 12 subplots?
6 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I am trying to place some text in the same position of 12 subplots (4x3). How can this be done? I have googled with no luck :(
Thanks
0 Commenti
Risposte (4)
Walter Roberson
il 8 Giu 2012
Suppose RelX and RelY are the relative position at which you want to plot the text, 0 to 1 each, starting from bottom left corner of the inside of the axis. Then, for any one plot,
DataX = interp1( [0 1], xlim(), RelX );
DataY = interp1( [0 1], ylim(), RelY );
text(DataX, DataY, 'Your String')
0 Commenti
Image Analyst
il 8 Giu 2012
What's wrong with the text() function?
3 Commenti
Image Analyst
il 8 Giu 2012
I was thinking that you would have the axes the same every time, like you had called xlim() and ylim().
Vedere anche
Categorie
Scopri di più su Axis Labels in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!