how to get a drawing with the same axes?

조회 수: 8 (최근 30일)
Pavel Kuzmitsky
Pavel Kuzmitsky 2020년 12월 1일
댓글: Pavel Kuzmitsky 2020년 12월 2일
after getting a picture, such as a circle, due to the fact that the monitor is not square, but rectangular (or maybe not because of this), my x-axis becomes longer and as a result, the picture shows not a circle, but an ellipse.
what can I do to display an image without distortion?

채택된 답변

Cris LaPierre
Cris LaPierre 2020년 12월 1일
add the following command after your plot command.
axis equal
  댓글 수: 3
Cris LaPierre
Cris LaPierre 2020년 12월 2일
This command sets the length along each axis the same (see here).
If your plot is still not circular, I suspect your code is not creating a circle. Could you share your code?
Pavel Kuzmitsky
Pavel Kuzmitsky 2020년 12월 2일
sorry, I made a stupid mistake, everything works fine, thank you

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Labels and Annotations에 대해 자세히 알아보기

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by