How to plot 3 graphs in 1 figure?

35 vues (au cours des 30 derniers jours)
Elia Paini
Elia Paini le 1 Mai 2021
Modifié(e) : Adam Danz le 3 Mai 2021
Hi, I want to plot 3 graphs in one figure, arranging them two on the left and one on the right.
With subplot, I managed to arrange them only in this way:
Thank you!

Réponse acceptée

dpb
dpb le 1 Mai 2021
There's an example of 2 on top and one on bottom that should have given the clue of how to bo about it...
hAx(1)=subplot(2,2,1);
hAx(2)=subplot(2,2,3);
hAx(3)=subplot(2,2,[2 4]);
results in axes as shown
  2 commentaires
Adam Danz
Adam Danz le 2 Mai 2021
Modifié(e) : Adam Danz le 3 Mai 2021
Or tiled layout
fig = figure();
tlo = tiledlayout(fig,2,2);
nexttile
nexttile([2,1])
nexttile
Elia Paini
Elia Paini le 2 Mai 2021
Thank you both!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Line Plots dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by