I am experimenting with octave animations and I have an issue with the following code:

```
clear
x = 0:pi/1000:2*pi;
y = sin(x);
y2 = sin(2*x);
y3 = sin(3*x);
figure
xlim("manual");
ylim("manual");
xlim([0 2*pi]);
ylim([-1 1]);
tic
for i = 1:2000
xlim ("mode")
plot(x(i),y(i),'b',x(i),y2(i),'r',x(i),y3(i),'g')
pause(1)
end
toc
```

At the output I get:

```
ans = manual
ans = auto
ans = auto
ans = auto
ans = auto
```

Why is the axis mode reverting to auto after plotting new data?

`hold on`

there. You are right, plot here is supposed to reset the axes. – Cris Luengo 2 hours ago