I am trying to find a set of parameters to fit some data. I want to be able to change the parameters and plot all the graphs on one plot. This is some simple example code.
import numpy as np
import matplotlib.pyplot as plt
vel=10
r=2
array1=np.linspace(1,100,100)
array2=(array1**2)/(r*vel**2)
Now I can plot array2 vs array1. But I want to now vary my vel and r parameters and plot all those plots on one plot. For example I want to change it to r=3 and then vary vel from 1-10 and plot all 10 of those plots. Then change it to r=4 and vary vel from 1-10 and plot all 10 of those and so on all the way to r=10.
What is the most efficient way of going about doing this?