square gridlines in the figure

31 ビュー (過去 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 Center および File Exchange2-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