フィルターのクリア

How to change size of subplots and active scroll bar to have bigger subplots?

8 ビュー (過去 30 日間)
Hamid
Hamid 2022 年 8 月 26 日
回答済み: Sai Pallav 2023 年 7 月 6 日
Dear all,
I have to plot 40 figures and I am using subplot but the outputted figures are small (Please find it attached). Is there any way to active scroll bar and have a bigger subplot and a better output? My code is as following:
load myvalues.mat
figure("Name","pcolor plots")
for i=1:40
subplot(10,5,i)
pcolor(values(:,:,i));
title('Graph number: '+ string(i))
colorbar;
colormap(gca, 'parula');
clim([0 5])
axis equal
hold on
end
  1 件のコメント
pragnan nadimatla
pragnan nadimatla 2023 年 7 月 4 日
As per my understanding you want to change size of subplots and active scroll bar to have bigger subplots.
One possible workaround solution could be to use the scrollsubplot function from MathWorks File Exchange, which allows you to create subplots with a scroll bar for easy navigation. you can adjust the size of the subplots individually using the Position property of each subplot axis.
Please refer to the following Page :
https://in.mathworks.com/matlabcentral/fileexchange/7730-scrollsubplot?s_tid=srchtitle

サインインしてコメントする。

回答 (1 件)

Sai Pallav
Sai Pallav 2023 年 7 月 6 日
Hi Hamid,
There is another MATLAB answer tackling the same problem. However, it is mentioned that resizing is not possible for the same figure. Try using MATLAB uipanels mentioned in the comments of the attached MATLAB answer. This might be helpful.

カテゴリ

Help Center および File ExchangeSubplots についてさらに検索

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by