Here is my code :
import matplotlib.pyplot as plt
import numpy as np
from time import sleep
c = np.arange(-5,5,0.1)
pi = np.pi
x = np.arange(-pi,pi,0.01)
plt.figure()
for ci in c:
y = np.sin(ci*x)
plt.plot(x,y)
plt.show()
sleep(1)
Currently the plots are not shown together.It shows figure and I should close that figure to show another. What should I do to show the plots respectively in one figure?
Edit:
I want to see in one figure and doesn't show previous plot
I did this with Matlab but I can't do with python