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

12 visualizaciones (últimos 30 días)
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 comentario
pragnan nadimatla
pragnan nadimatla el 4 de Jul. de 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

Iniciar sesión para comentar.

Respuestas (1)

Sai Pallav
Sai Pallav el 6 de Jul. de 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.

Productos


Versión

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by