문제

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

도움이 되었습니까?

해결책

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
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top