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!