Search code examples
octaveimshow

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.

How can I do in Octave?


Solution

  • 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])