Pergunta

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

Foi útil?

Solução

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 em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top