I can not make the figure landscape in the subplot

조회 수: 2 (최근 30일)
Shreen El-Sapa
Shreen El-Sapa 2021년 11월 23일
답변: nick 2024년 2월 5일
I can not make the figure landscape in the subplot

답변 (1개)

nick
nick 2024년 2월 5일
Hi Shreen,
I understand from your query that you are interested in achieving landscape orientation for a figure with subplots.
The "orient" function used in the code is used to set the paper orientation for printing or saving a figure. The following image shows the "landscape" paper orientation:
To adjust your subplots within the landscape-oriented figure, you can change the number of rows and columns in the "subplot" function. Here's an example code snippet that creates a 2x1 grid of subplots in a landscape-oriented figure:
subplot(2,1,1);
a = 1 ; %RADIUS
L=.1;
akm=4;gamma=0.3;arh=1; %beta1=beta2=1,a1=1,a2=2,arh=1,delta=0.5,u2=1
alphaa=sqrt(((2+akm).*akm./(gamma.*(2+akm))).^2+arh.^2);
betaa=(2.*akm.*arh.^2./gamma).^(0.25);
alpha1=sqrt((alphaa.^2+sqrt(alphaa.^4-4.*betaa.^4))./2);
alpha2=sqrt((alphaa.^2-sqrt(alphaa.^4-4.*betaa.^4))./2);
dd=6;
You may refer the following documentations to learn more about "orient" and "subplot" functions :
Hope this helps.

카테고리

Help CenterFile Exchange에서 Subplots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by