Animation for plotting y=omega*x^2 with omega varying from -3 to 3
I want to plot y = omega*x^2 with omega varying from -3 to 3 with a step size of 0.25 (and x spanning -4 to 4 with a step size of 0.001). The current version of my code (below) only has omega start at 0 and not -3. How do I adjust my code to get omega to vary over the range I want?
Python Animation for plotting y=omega*x^2 when omega start from -3 into 3
In Python, I want to plot y=omega*x^2, which omega is -3 into 3 with step size 0.25, x from -4 into 4 with step size 0.001. But this code give me the curve is omega start from 0. I want the curve is moving when omega start from -3 into 3, like this.