Subplot, 1 large and 2 small
70 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Sarah Yun
el 18 de En. de 2020
Comentada: Walter Roberson
el 18 de En. de 2020
Hello,
Is it possible to make a subplot that look like this:
What is code?
0 comentarios
Respuesta aceptada
Walter Roberson
el 18 de En. de 2020
subplot(2, 2, [1 3])
%draw for A
subplot(2, 2, 2)
%draw for B
subplot(2, 2, 4)
%draw for C
2 comentarios
Walter Roberson
el 18 de En. de 2020
subplots are numbered along the rows. The first argument to subplot is the number of rows; the second is the number of columns; the third is which of them to select. If you wanted to add another box to the left, that would be another column, not another row. If the effect you were trying for was that the plot for A was twice as high and twice as wide as the other two, then
%{
1 | 2 | 3
---------
4 | 5 | 6
%}
subplot(2, 3, [1 2 4 5]) %2 x 2 to the left
%draw for A
subplot(2, 3, 3) %1 x 1 top right
%draw for B
subplot(2, 3, 6) %1 x 1 bottom right
Más respuestas (0)
Ver también
Categorías
Más información sobre Subplots 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!