from mpl_toolkits import mplot3d
import numpy as np
import matplotlib.pyplot as plt

def f(x,t):
	return np.sin(t)*np.sin(x)

x = np.linspace(0,2*np.pi,1000)
t = 0
h = 0.1
while t <= np.pi*3/2:
	y = f(x,t)
	plt.plot(x,y)
	t += h

plt.grid(True)
plt.show()


#t = np.linspace(0,3*np.pi,1000)

#X,T = np.meshgrid(x,t)
#Y = f(X,T)

#fig = plt.figure()
#ax = plt.axes(projection="3d")

#ax.plot_surface(X,T,Y, cmap='ocean')

#ax.set_xlabel("x")
#ax.set_ylabel("t")
#ax.set_zlabel("y")

#plt.show()

