How to Resize 2D Plot Box?
7 ビュー (過去 30 日間)
古いコメントを表示
I have a (2D) quiver plot for which I've set the DataAspectRatio property of the axes. This seems to have set the plot box aspect ratio correspondingly, and I find myself unable to change it, even as I resize the figure window. I have tried setting the PlotBoxAspectRatio prpoerty to something different, but it doesn't actually change to what I set it to, nor is there any visual change in the plot. All that happens is that PlotBoxAspectRatioMode changes to 'manual'.
How do I actually change the plot box aspect ratio? Is some setting possibly forcing it to stay the same?
0 件のコメント
回答 (1 件)
Deepak Meena
2021 年 1 月 29 日
Hi David,
Since I don't have much detail on your question , I can guess what you would be doing wrong.You might setting the data aspect ratio of another axes. Try this to set the data aspect ratio of current figure :
set(gca,'DataAspectRatio', [1 1 1]);
Hope this anwer your question
Thanks
参考
カテゴリ
Help Center および File Exchange で Vector Fields についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!