フィルターのクリア

Creating plots in group of six plots for x number of plots

3 ビュー (過去 30 日間)
Harjas
Harjas 2022 年 7 月 4 日
編集済み: Harjas 2022 年 7 月 7 日
I have run 'for' loop to store the plot for every year in 'h'. But I am unable to find a way to save/show those plots in group of six plots.

回答 (1 件)

Yatharth
Yatharth 2022 年 7 月 7 日
Hey, you can do so by making 10 tiled layouts and each graph you can use the hold property to plot 6 graphs in 1 plot this will give you 10 plots with Multiple Axes and each plot having 6 plots with Same Axes .
tiledlayout(10,1)
for i = 1:10
nexttile % this will move your next plot to the next layout
hold on
% you only need to declare hold on once
% after you define hold on just plot your 6 desired plots
plot(x,y1)
plot(Dt,MA)
plot(Dt,Min_mm.min_MeanDayFlow);
plot(Dt,Max_mm.max_MeanDayFlow);
plot(Dt,P25_m.fun1_MeanDayFlow);
plot(Dt,P75_m.fun1_MeanDayFlow);
hold off
end
You can refer to the documentation for various configuration

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

製品


リリース

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by