Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/matlab/15.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在Matlab中更改plotyy的纵横比(使用pbaspect)_Matlab_Plot_Aspect Ratio - Fatal编程技术网

在Matlab中更改plotyy的纵横比(使用pbaspect)

在Matlab中更改plotyy的纵横比(使用pbaspect),matlab,plot,aspect-ratio,Matlab,Plot,Aspect Ratio,我试图在Matlab中更改plotyy图形的纵横比pbaspect仅更改gca,它只是plotyy中两个轴之一。那么有没有办法改变plotyy的两个轴呢?感谢Maarten您可能需要指定轴手柄: [AX,H1,H2] = plotyy(...) pbaspect(AX(1),...) % set aspect ratio of the first axis pbaspect(AX(2),...) % set aspect ratio of the second axis 非常感谢,它工作得很好

我试图在Matlab中更改
plotyy
图形的纵横比
pbaspect
仅更改
gca
,它只是
plotyy
中两个轴之一。那么有没有办法改变
plotyy
的两个轴呢?感谢Maarten

您可能需要指定轴手柄:

[AX,H1,H2] = plotyy(...)
pbaspect(AX(1),...) % set aspect ratio of the first axis
pbaspect(AX(2),...) % set aspect ratio of the second axis

非常感谢,它工作得很好。除了这个明显的,我试了几次。