【工具要求】

安装anaconda包即可。

需要用的库:matplotlib和numpy

python交互模式下实现:

C:\Users\Administrator>python
Python 3.6.4 |Anaconda, Inc.| (default, Jan 16 2018, 10:21:59) [MSC v.1900 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy  as np
>>> import matplotlib.pyplot as plt
>>> x = np.arange(0,5,0.1);
>>> y = np.sin(x);
>>> plt.plot(x,y)
[<matplotlib.lines.Line2D object at 0x035E66B0>]
>>> plt.show()
>>> plt.show()
>>> plt.plot(x,y)
[<matplotlib.lines.Line2D object at 0x0B176DD0>]
>>> plt.show()
>>>

【Python繁星点点】【KPoint006】-python交互模式下-sin()函数绘图

【测试结果】

【Python繁星点点】【KPoint006】-python交互模式下-sin()函数绘图


相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-06-02
  • 2021-11-28
  • 2022-01-27
  • 2021-05-20
  • 2021-05-28
猜你喜欢
  • 2021-09-06
  • 2022-01-26
  • 2021-07-11
  • 2021-05-17
  • 2021-07-15
  • 2021-11-11
  • 2021-12-13
相关资源
相似解决方案