How to change size of subplots and active scroll bar to have bigger subplots?
12 次查看(过去 30 天)
显示 更早的评论
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
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
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.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Subplots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!