square gridlines in the figure

조회 수: 37 (최근 30일)
Ugur Sahin
Ugur Sahin 2020년 5월 19일
답변: Ashok Kumar 2025년 3월 6일
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

채택된 답변

Geoff Hayes
Geoff Hayes 2020년 5월 19일
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
Ugur Sahin
Ugur Sahin 2020년 5월 19일
Thanks, bro this is working as I want :)

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

추가 답변 (1개)

Ashok Kumar
Ashok Kumar 2025년 3월 6일
axis equal
axis square

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by