简体   繁体   English

如何在八度显示相同倍率的图像

[英]How to show the images with the same magnification in Octave

I'd like to show two images with the same magnification in Octave. 我想在八度中显示两个具有相同放大倍率的图像。 But the imshow function in Octave doesn't support the property of "initialMagnification" while Matlab supports this property. 但是Octave中的imshow函数不支持“ initialMagnification”属性,而Matlab支持该属性。

How can I do in Octave? 我该如何在Octave中做?

Just set the axis to the desired "zoomed" ranges. 只需将轴设置为所需的“缩放”范围即可。 The command is axis, and is described here . 该命令是轴, 在此进行描述。

figure(1);
A = randn (10000, 1);
plot(A);

figure(2);
plot(A);
axis([30,50])

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM