fix window size for circle plot?!

12 ビュー (過去 30 日間)
Christian
Christian 2017 年 1 月 9 日
コメント済み: Christian 2017 年 1 月 15 日
Hello everybody,
my script is fully working except for one detail. I have 3 subplots in one window. Two of them are perfect circles. After running the script I would like to pinch the figure window to fullsize, which unfortunately ruins those perfect circles. In fullsize the circles look more like ellipses.
Thank you Christian

採用された回答

Image Analyst
Image Analyst 2017 年 1 月 9 日
Try one of these:
axis square
axis equal
One of them should do what you want.
  1 件のコメント
Christian
Christian 2017 年 1 月 15 日
axis equal worked perfect for me, thank you!!

サインインしてコメントする。

その他の回答 (1 件)

Adam
Adam 2017 年 1 月 9 日
doc axes properties
Take a look at the sections on:
DataAspectRatio
PlotBoxAspectRatio
I can't remember off the top of my head what settings you need, but these are the two settings that control the aspect ratio of the data and of the axes.
  1 件のコメント
Christian
Christian 2017 年 1 月 9 日
That seems to work! But how can I set my manual properties as a default for this figure? Everytime I run the script, the figure loses the settings and acts like before.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeGraphics Performance についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by