필터 지우기
필터 지우기

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 CenterFile Exchange에서 Subplots에 대해 자세히 알아보기

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by