- numpy - matplotlib First PyScript Application
Sin(x) Cos(x)
import matplotlib.pyplot as plt import numpy as np x = np.arange(-np.pi, np.pi,np.pi/180) y = np.sin(x) fig, ax = plt.subplots() ax.plot(x, y) fig import matplotlib.pyplot as plt import numpy as np x = np.arange(-np.pi, np.pi,np.pi/180) y = np.cos(x) fig, ax = plt.subplots() ax.plot(x, y) fig