Why does MATLAB not allow you to control the DataAspectRatio when you use both the left and right y-axes?
10 ビュー (過去 30 日間)
古いコメントを表示
figure;
yyaxis left;
ax=gca;
ax.DataAspectRatio = randi( 3, 1, 3 )
%Warning: Only 'auto' DataAspectRatio is supported for axes with multiple coordinate systems.
0 件のコメント
回答 (1 件)
Prabhanjan Mentla
2021 年 1 月 12 日
Hi,
You may try this to adjust the data aspect ratio in a plot with two y-axes. You can go through this details for more information on DataAspectRatio.
Hope this helps.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Line Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!