python 绘制三角函数_Python | 绘制三角函数

python 绘制三角函数

Trigonometry is one of the most important parts in engineering and many times, therefore matplotlib.pyplot in combination with NumPy can help us to plot our desired trigonometric functions. In this article, we are going to introduce a few examples of trig-functions.

三角学是工程学中最重要的部分之一,因此, matplotlib.pyplot与NumPy结合可以帮助我们绘制所需的三角函数。 在本文中,我们将介绍一些三角函数的例子。

1)正弦函数 (1) Sine Function)

s = np.sin(t)
fig, ax = plt.subplots()
ax.plot(t, s)
ax.set(xlabel='radians', ylabel='Sin(x)',
       title='Sine Plot')

你可能感兴趣的:(python,matlab,机器学习,深度学习,numpy)