Why does MATLAB not allow you to control the DataAspectRatio when you use both the left and right y-axes?

조회 수: 1(최근 30일)
Dominik Mattioli
Dominik Mattioli 2020년 12월 10일
편집: Walter Roberson 2021년 1월 12일
yyaxis left;
ax.DataAspectRatio = randi( 3, 1, 3 )
%Warning: Only 'auto' DataAspectRatio is supported for axes with multiple coordinate systems.


Prabhanjan Mentla
Prabhanjan Mentla 2021년 1월 12일
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.

Community Treasure Hunt

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

Start Hunting!

Translated by