how to autoscale the figures?

Ben Abbott bpabbott at mac.com
Sat Nov 29 05:43:08 CST 2008


On Nov 29, 2008, at 3:25 AM, Dieter Jurzitza wrote:

> Dear 林蔚廷,
> dear Ben,
> I cannot see the point (currently):
>
> octave:1> A=zeros(1,1024);
> octave:2> for i=1:1024
>> A(i)=sin(2.0*pi*(i-1)/1024);
>> endfor
> octave:3> plot (A)
>
> plots one sine wave. If you zoom with the mouse (right mouse to zoom  
> the area,
> left mouse button to confirm) you can zoom into the window. If you  
> say "u"
> (undo) you get back to where you have been, one full sine, isn't  
> this what
> has been requested? Maybe I didn't understand the problem correctly.
>
> gnuplot 4.2.3 on linux here.
>
> Take care

opps!

You are correct. Gnuplot already does that.

Ben





More information about the Help-octave mailing list