Create a square loglog subplot
Ältere Kommentare anzeigen
Hello all
I want to create a plot of 6 subplot logarithm. so far so good.
The problem is that I would like to create "square" log figures like on picture 1 except that matlab displays rectangular subplots by and automatically adapts the height/width ratio according to the size of the general plot.

Antworten (1)
Matt J
am 1 Sep. 2021
Use
axis square
4 Kommentare
clement casotti
am 1 Sep. 2021
Matt J
am 1 Sep. 2021
I don't know how you are displaying them.
clement casotti
am 1 Sep. 2021
Because your subplot array is taller than it is wide, you must make your figure window taller than wide as well, e.g.,
figure(1)
for i=1:6
subplot(3,2,i)
plot(rand(1,5)); axis square
end
h=figure(1);
h.Position(3:4)=[640,950];
Otherwise, there is a tighter limit on how large the square tiles can grow.
figure(2);
for i=1:6
subplot(3,2,i)
plot(rand(1,5)); axis square
end
h=figure(2);
h.Position(3:4)=[950,640];
Kategorien
Mehr zu Subplots finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


