numpy,scipy,matplotlib,pylab,pyplot 杂记
来源:互联网 发布:营销网络 编辑:程序博客网 时间:2024/06/07 11:33
pyplot and pylab is a part of module matplotlib.
numpy is one of dependencies of matplotlib.
scipy depend on numpy.
but matplotlib have no relation with scipy.
Matplotlib is the whole package; pylab is a module in matplotlib that gets installed alongsidematplotlib; and matplotlib.pyplot is a module in matplotlib.
Pyplot provides the state-machine interface to the underlying plotting library in matplotlib. This means that figures and axes are implicitly and automatically created to achieve the desired plot. For example, calling plot from pyplot will automatically create the necessary figure and axes to achieve the desired plot. Setting a title will then automatically set that title to the current axes object:
Pylab combines the pyplot functionality (for plotting) with the numpy functionality (for mathematics and for working with arrays) in a single namespace, making that namespace (or environment) even more MATLAB-like. For example, one can call the sin and cos functions just like you could in MATLAB, as well as having all the features of pyplot.
The pyplot interface is generally preferred for non-interactive plotting (i.e., scripting). The pylab interface is convenient for interactive calculations and plotting, as it minimizes typing. Note that this is what you get if you use the ipython shell with the -pylab option, which imports everything from pylab and makes plotting fully interactive.
things above all is from the link :stackoverflowwe always use plt as the alias of matplotlib.pyplot
matplotlib has a number of dependencies ,among them numpy which it imports under the common aliasnp
Sympols from matplotlib are available under the mpl alias
regularily,we treat sp as the alias of scipy.
>>> import numpy as np>>> import scipy as sp>>> import matplotlib as mpl>>> import matplotlib.pyplot as plt
<pre name="code" class="python">>>> import pylab as pl
- numpy,scipy,matplotlib,pylab,pyplot 杂记
- Ubuntu安装scipy,numpy,pylab
- Ubuntu安装scipy,numpy,pylab
- matplotlib——pyplot和pylab区别
- 安装numpy、scipy、matplotlib
- 什么是scipy、numpy、matplotlib?
- matplotlib绘图实例:pyplot、pylab模块及作图参数
- matplotlib绘图实例:pyplot、pylab模块及作图参数
- matplotlib绘图实例:pyplot、pylab模块及作图参数
- matplotlib绘图实例:pyplot、pylab模块及作图参数
- matplotlib绘图实例:pyplot、pylab模块及作图参数
- matplotlib绘图实例:pyplot、pylab模块及作图参数
- matplotlib绘图实例:pyplot、pylab模块及作图参数
- 理解matplotlib、pylab与pyplot之间的关系
- numpy,scipy,matplotlib配置教程
- eclipse+python+numpy+scipy+matplotlib
- python:安装numpy, Scipy,Matplotlib
- python install numpy+scipy+matplotlib
- 生活感悟
- 一张全景图——保护模式下的“任务”(Task)
- 数字排序练习
- 通过jdbc数据库连接
- WPF Binding Validation 数据验证
- numpy,scipy,matplotlib,pylab,pyplot 杂记
- ZooKeeper客户端curator应用
- 软件项目文档
- 计算机网络中一些常见性能指标总结
- 第十七周项目6 读取文件,多文件处理
- JAVA环境配置
- Hibernate 的<generator class="native"></generator>的不同属性含义
- OC-中介找房-代理设计模式
- “Avalon”动画:故事板 (Storyboard) 简介