square gridlines in the figure

38 visualizaciones (últimos 30 días)
Ugur Sahin
Ugur Sahin el 19 de Mayo de 2020
Respondida: Ashok Kumar el 6 de Mzo. de 2025
Hi guys,
I have prepared a plot and ı am using grid on function in the script but when ı run the program plot's lines looks rectangular. Hence, cirle looks eliptic I don't want that,
How can ı adjust rectangular gridlines to square gridlines when ı run the program ?
thanks

Respuesta aceptada

Geoff Hayes
Geoff Hayes el 19 de Mayo de 2020
Ugur - it could be that your axes do not have the same data unit lengths. Try using
axis equal
to ensure the same spacing on each axis. See Set axis limits and aspect ratios for details.
  1 comentario
Ugur Sahin
Ugur Sahin el 19 de Mayo de 2020
Thanks, bro this is working as I want :)

Iniciar sesión para comentar.

Más respuestas (1)

Ashok Kumar
Ashok Kumar el 6 de Mzo. de 2025
axis equal
axis square

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by