I am trying to plot in a nested loop, I expect three different plots with a different colors.
import matplotlib.pyplot as plt
import numpy as np
Temp = np.array([6, 7, 8])
Freq = np.arange(1, 10, 0.1)
# nested for loop for 3 plots
for T in Temp:
for f in Freq:
def quanta(f,T):
return(f*T)
final = quanta(f,T)
plt.plot(f, final)
plt.show()
plt.show()inside the for loop just after theplt.plot