Python 的 Numpy SciPy MatPlotLib配置
来源:互联网 发布:海关数据工作 编辑:程序博客网 时间:2024/05/18 13:31
基础知识:
1. pip安装组件
pip install XXX
2. pip升级组件
pip install --upgrade XXX
动手配置:
1.安装Python,这里选择2.7还是3.4都行,不过推荐使用2.7,毕竟现在的教程大部分还是基于2.7的,3.4跟2.7的语法还是略有不同,为了避免语法错误的麻烦,还是推荐大家使用2.7
2.下载Numpy,SciPy,MatplotLib这三个库的exe
3.测试组件是否好用
import numpy
import scipy
import matplotlib
4.安装dateutil
pip install python_dateutil
5.安装pyparsing
pip install pyparsing
6.安装six
pip install six
跑例子程序:
import numpy as npimport matplotlib.pyplot as pltx = np.linspace(0, 2 * np.pi)offsets = np.linspace(0, 2*np.pi, 4, endpoint=False)# Create array with shifted-sine curve along each columnyy = np.transpose([np.sin(x + phi) for phi in offsets])plt.rc('lines', linewidth=4)fig, (ax0, ax1) = plt.subplots(nrows=2)plt.rc('axes', color_cycle=['r', 'g', 'b', 'y'])ax0.plot(yy)ax0.set_title('Set default color cycle to rgby')ax1.set_color_cycle(['c', 'm', 'y', 'k'])ax1.plot(yy)ax1.set_title('Set axes color cycle to cmyk')# Tweak spacing between subplots to prevent labels from overlappingplt.subplots_adjust(hspace=0.3)plt.show()
如果解决不了,可以参考
http://blog.csdn.net/walkandthink/article/details/45200597
http://www.tuicool.com/articles/uIfIba
0 0
- Python 的 Numpy SciPy MatPlotLib配置
- Python中numpy,scipy,matplotlib,opencv的配置过程
- 64位的win7配置python、pip、numpy、scipy、matplotlib
- windows下python配置numpy、matplotlib、scipy
- 安装配置Python+Numpy+Scipy+Matplotlib环境
- windows下python配置numpy、matplotlib、scipy
- windows下python配置numpy、matplotlib、scipy
- windows下python配置numpy、matplotlib、scipy
- eclipse+python+numpy+scipy+matplotlib
- python:安装numpy, Scipy,Matplotlib
- python install numpy+scipy+matplotlib
- numpy,scipy,matplotlib配置教程
- Python中的Numpy、SciPy、MatPlotLib安装与配置
- Python中的Numpy、SciPy、MatPlotLib安装与配置
- Python中的Numpy、SciPy、MatPlotLib安装与配置
- Python中Numpy、SciPy、MatPlotLib安装与配置
- Python中的Numpy、SciPy、MatPlotLib安装与配置
- Python中的Numpy、SciPy、MatPlotLib安装与配置
- 如何让类对象只能在堆(栈)上分配空间
- 【机房收费系统】——结账
- POJ2739--Sum of Consecutive Prime Numbers(尺取法)
- Android 使用Fragment,ViewPagerIndicator 制作csdn app主要框架
- 玩儿转Swift——学习笔记(持续更新)
- Python 的 Numpy SciPy MatPlotLib配置
- HDU 1166 敌兵布阵 // 线段树
- 机房收费系统之组合查询
- 【四】nginx的数据结构(2)——自己动手重写红黑树
- (转)为什么宏INT_MIN要写成-2147483647-1
- SpringMVC详细示例实战教程
- hdu 5385 The path (贪心+最短路径树)
- C++内存管理
- Docker 入门