how to get a drawing with the same axes?

2 次查看(过去 30 天)
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 中查找有关 Annotations 的更多信息

产品


版本

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by