MatPlotLib
来源:互联网 发布:王石田朴珺 知乎 编辑:程序博客网 时间:2024/05/10 04:59
http://matplotlib.sourceforge.net/examples/pylab_examples/pcolor_demo.html
pylab_examples example code: pcolor_demo.py¶
[source code,hires.png, pdf]
#!/usr/bin/env python"""See pcolor_demo2 for an alternative way of generating pcolor plotsusing imshow that is likely faster for large grids"""from __future__ import divisionfrom matplotlib.patches import Patchfrom pylab import *def func3(x,y): return (1- x/2 + x**5 + y**3)*exp(-x**2-y**2)# make these smaller to increase the resolutiondx, dy = 0.05, 0.05x = arange(-3.0, 3.0001, dx)y = arange(-3.0, 3.0001, dy)X,Y = meshgrid(x, y)Z = func3(X, Y)pcolor(X, Y, Z)colorbar()axis([-3,3,-3,3])show()
Keywords: python, matplotlib, pylab, example, codex (see Search examples)
- MatPlotLib
- matplotlib
- matplotlib
- matplotlib
- matplotlib
- matplotlib
- matplotlib
- matplotlib
- matplotlib
- matplotlib
- matplotlib
- matplotlib
- Matplotlib
- matplotlib
- matplotlib
- matplotlib
- matplotlib
- Matplotlib
- 2.1 frac1
- 跳转指令
- 今天的碰头会议
- 2.1 sort3三值排序
- pctfree和pctused,initrans,maxtrans,next
- MatPlotLib
- MFC编程参考
- 被哥忘却的函数指针
- 关于DIV块背景图设置问题
- ASPnet网页 母版页 用户控件Load事件执行顺序
- 凤凰科技
- 25匹马取前5
- 解剖Twitter:Twitter系统架构设计分析
- ajax上传文件进度条实现