yyaxis, control aspect ratio
10 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Thomas Jacob
el 9 de Jul. de 2020
Comentada: Thomas Jacob
el 13 de Jul. de 2020
Hi,
I'm trying to create a plot with 2 y-axis using yyaxis.
I would like to to set one of the two y-axis to have an aspect ratio of one in comparison with the x-axis.
I tried
set(gca,'DataAspectRatio',[1 1 1])
and
axis equal
but it throw the following error: "Warning: Only 'auto' DataAspectRatio is supported for axes with multiple coordinate systems."
Is there a way around this limitation?
0 comentarios
Respuesta aceptada
Apoorv Singh
el 9 de Jul. de 2020
Hey Thomas, refer to the following link: https://in.mathworks.com/matlabcentral/answers/324007-how-can-i-adjust-the-data-aspect-ratio-in-a-plot-with-two-y-axes
Hope this helps :)
1 comentario
Más respuestas (0)
Ver también
Categorías
Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!