How to make Live Script plot figure shape not be squared?

I am using MATLAB 2021a, and when plot a figure in Live Script, the default shape of the figure is sqaure-shapped:
Since the data is really long, I want the figure is rectangular-sized to show more details. How can I pick a special ratio of the axes? I searched online and one solution is using daspect function.
But when I use daspect, the figure does become rectanglur, but a large margin shows on both top and bottom of the figure, that's quite ugly. I want the figure "filled" in between the texts.
How can I achive that? Thanks!

답변 (1개)

kan wu
kan wu 2021년 8월 27일
I just found that I can simply use
set(gcf,'Position',[0 0 500 400]);
to set the location? Is that the right way, please tell me better solutions. thanks.

카테고리

도움말 센터File Exchange에서 Labels and Styling에 대해 자세히 알아보기

태그

질문:

2021년 8월 27일

답변:

2021년 8월 27일

Community Treasure Hunt

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

Start Hunting!

Translated by