Insert comment in the 4th quadrant of a subplot with Label and/or text
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Jean-Hugues LE GALLOU
el 13 de Abr. de 2021
Comentada: Jean-Hugues LE GALLOU
el 14 de Abr. de 2021
Hello,
I create a figure with subplot(x,y,n)
graphs on the (2,2,1); (2,2,2) and (2,2,3).
and in the 4th quadrant I want to insert some text with a uilabel.
When I want to place a label in the figure towards the bottom right side, nothing is displayed without error.
This works if I don't use subplot.
How to insert one or more labels with a subplot?
Thanks in advance
0 comentarios
Respuestas (2)
Alan Stevens
el 13 de Abr. de 2021
Like so?
x = 0:0.1:10;
y = sin(x);
subplot(2,2,1)
plot(x,y)
subplot(2,2,2)
plot(x,y+1/2)
subplot(2,2,3)
plot(x,y-1/2)
subplot(2,2,4)
text(0.1,0.5,'Put text here?')
axis off
0 comentarios
Jean-Hugues LE GALLOU
el 13 de Abr. de 2021
2 comentarios
Alan Stevens
el 13 de Abr. de 2021
Does this do what you want?
x = 0:0.1:10;
y = sin(x);
subplot(2,2,1)
plot(x,y)
subplot(2,2,2)
plot(x,y+1/2)
subplot(2,2,3)
plot(x,y-1/2)
subplot(2,2,4)
text(0.1,0.5,'Put text here?')
cla
text(0.1,0.5,'New text ')
axis off
Ver también
Categorías
Más información sobre Axis Labels en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!