Filter löschen
Filter löschen

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

8 Ansichten (letzte 30 Tage)
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 Kommentar
pragnan nadimatla
pragnan nadimatla am 4 Jul. 2023
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

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Sai Pallav
Sai Pallav am 6 Jul. 2023
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.

Produkte


Version

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by