Matplotlib 中的簡單圖
此示例說明如何使用 Matplotlib 建立簡單的正弦曲線 ****
# Plotting tutorials in Python
# Launching a simple plot
import numpy as np
import matplotlib.pyplot as plt
# angle varying between 0 and 2*pi
x = np.linspace(0, 2.0*np.pi, 101)
y = np.sin(x) # sine function
plt.plot(x, y)
plt.show()