fix window size for circle plot?!

조회 수: 12 (최근 30일)
Christian
Christian 2017년 1월 9일
댓글: Christian 2017년 1월 15일
Hello everybody,
my script is fully working except for one detail. I have 3 subplots in one window. Two of them are perfect circles. After running the script I would like to pinch the figure window to fullsize, which unfortunately ruins those perfect circles. In fullsize the circles look more like ellipses.
Thank you Christian

채택된 답변

Image Analyst
Image Analyst 2017년 1월 9일
Try one of these:
axis square
axis equal
One of them should do what you want.
  댓글 수: 1
Christian
Christian 2017년 1월 15일
axis equal worked perfect for me, thank you!!

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Adam
Adam 2017년 1월 9일
doc axes properties
Take a look at the sections on:
DataAspectRatio
PlotBoxAspectRatio
I can't remember off the top of my head what settings you need, but these are the two settings that control the aspect ratio of the data and of the axes.
  댓글 수: 1
Christian
Christian 2017년 1월 9일
That seems to work! But how can I set my manual properties as a default for this figure? Everytime I run the script, the figure loses the settings and acts like before.

댓글을 달려면 로그인하십시오.

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by