Relative Content

Tag Archive for pythonmatplotlibanimationmatplotlib-animation

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?