File: figimage_demo.py

package info (click to toggle)
matplotlib 0.98.1-1%2Blenny4
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 18,624 kB
  • ctags: 22,599
  • sloc: python: 76,915; cpp: 63,459; ansic: 5,353; makefile: 111; sh: 12
file content (21 lines) | stat: -rw-r--r-- 459 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env python
"""
See pcolor_demo2 for a much faster way of generating pcolor plots
"""
from __future__ import division
from pylab import *
rc('axes', hold=True)
rc('image', origin='upper')
figure(1, frameon=False)
Z = arange(10000.0); Z.shape = 100,100
Z[:,50:] = 1
jet() # sets the default
im1 = figimage(Z, xo=50,  yo=0)
im2 = figimage(Z, xo=100, yo=100, alpha=.8)
#gray()  # overrides current and sets default
#savefig('figimage_demo')

show()