Why does MATLAB not allow you to control the DataAspectRatio when you use both the left and right y-axes?
7 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
figure;
yyaxis left;
ax=gca;
ax.DataAspectRatio = randi( 3, 1, 3 )
%Warning: Only 'auto' DataAspectRatio is supported for axes with multiple coordinate systems.
0 Kommentare
Antworten (1)
Prabhanjan Mentla
am 12 Jan. 2021
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 Kommentare
Siehe auch
Kategorien
Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!