赞
踩
运行环境:win32,python3.6,IDLE
Numpy :pip install numpy
matplotlib: 下载预Matplotlib编译的安装包,注意选择Python的版本和系统的位数 使用pip包管理器安装,在命令行中输入:pip install 下载安装包的完整路径 打开Python
如果import maplotlib和import numpy可以正常载入,则表明安装成功。
使用help命令查看两个函数库的描述如下:
DESCRIPTION
NumPy
=====
Provides
1. An array object of arbitrary homogeneous items
2. Fast mathematical operations over arrays
3. Linear Algebra, Fourier Transforms, Random Number Generation
NAME
matplotlib.pyplot - Provides a MATLAB-like plotting framework.DESCRIPTION
:mod:~matplotlib.pylab
combines pyplot with numpy into a single namespace.
This is convenient for interactive work, but for programming it
is recommended that the namespaces be kept separate, e.g.:import numpy as np import matplotlib.pyplot as plt # x = np.arange(0, 5, 0.1); y = np.sin(x) plt.plot(x, y)
- 1
- 2
- 3
- 4
- 5
- 6
help(np.arange)
arange(...)
arange([start,] stop[, step,], dtype=None)
Return evenly sp
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。