Pregunta

I'm trying to change the aspect ratio of a plotyy figure in Matlab. pbaspect only changes the gca which is only one of the two axis in plotyy. So is there a way to get both axes of the plotyy changed? Thanks Maarten

¿Fue útil?

Solución

You probably need to specify the axes handles:

[AX,H1,H2] = plotyy(...)
pbaspect(AX(1),...) % set aspect ratio of the first axis
pbaspect(AX(2),...) % set aspect ratio of the second axis
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top