import matplotlib.pyplot as plt
import numpy as np
x1 = np.arange(0,360,1)
y1 = np.sin(x1 * np.pi / 180.0)
x2 = x1
x3 = x1
y3 = np.tan(x3 * np.pi / 180.0)
plt.subplot(211)
plt.plot(x1,y1,lw=1)
plt.subplot(212)
plt.plot(x3,y3,"y--",lw=3)
plt.ylabel("y_label")
plt.xlabel("x_label")
plt.title("Title")
plt.xlim(-30,390)
plt.ylim(-5,5)
plt.show()
沒有留言:
張貼留言