Menu

[r3358]: / trunk / htdocs / examples / figimage_demo.py  Maximize  Restore  History

Download this file

21 lines (17 with data), 464 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
#!/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()
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.