相关代码 |
|
#!/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()
相关资源 |
|