免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3208 | 回复: 0

matplotlib学习整理 [复制链接]

论坛徽章:
0
发表于 2009-11-24 17:12 |显示全部楼层
1. 安装
http://matplotlib.sourceforge.net/users/installing.html
Once you have python up and running, you will need to install
numpy
.
numpy provides high performance array data structures and mathematical
functions, and is a requirement for matplotlib.  You can test your
progress:
>>> import numpy
>>> print numpy.__version__
1、下载这个东西下来是为了使用一些内置的数学函数的~
matplotlib requires numpy version 1.1 or later
一开始下载错了。不过现 在好了!
奇怪哦好像还 要配置一下环境变量什么 的!
2、http://ipython.scipy.org/dist/ 下载一下这个东西!
we strongly encourage you to install
ipython
,
which is an interactive shell for python that is matplotlib aware.我下载下来了!
Once you have ipython,
numpy and matplotlib installed, in ipython’s “pylab” mode you have a
matlab-like environment that automatically handles most of the
configuration details for you, so you can get up and running quickly:
johnh@flag:~> ipython -pylab
Python 2.4.5 (#4, Apr 12 2008, 09:09:16)
IPython 0.9.0 -- An enhanced Interactive Python.
  Welcome to pylab, a matplotlib-based Python environment.
  For more information, type 'help(pylab)'.
In [1]: x = randn(10000)
3、http://sourceforge.net/projects/matplotlib/files/ 下载 它自己

In [2]: hist(x, 100)
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/84280/showart_2102801.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP