Filter löschen
Filter löschen

how to get a drawing with the same axes?

2 Ansichten (letzte 30 Tage)
Pavel Kuzmitsky
Pavel Kuzmitsky am 1 Dez. 2020
Kommentiert: Pavel Kuzmitsky am 2 Dez. 2020
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?

Akzeptierte Antwort

Cris LaPierre
Cris LaPierre am 1 Dez. 2020
add the following command after your plot command.
axis equal
  3 Kommentare
Cris LaPierre
Cris LaPierre am 2 Dez. 2020
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 am 2 Dez. 2020
sorry, I made a stupid mistake, everything works fine, thank you

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Produkte


Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by