Why does MATLAB not allow you to control the DataAspectRatio when you use both the left and right y-axes?
7 次查看(过去 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!