source: misc/tools/demos/imagedemo.py @ 3760

Last change on this file since 3760 was 41, checked in by ole, 19 years ago
File size: 295 bytes
Line 
1from matplotlib.matlab import *
2
3delta = 0.025
4x = y = arange(-3.0, 3.0, delta)
5X, Y = meshgrid(x, y)
6Z1 = bivariate_normal(X, Y, 1.0, 1.0, 0.0, 0.0)
7Z2 = bivariate_normal(X, Y, 1.5, 0.5, 1, 1)
8
9# difference of Gaussians
10im = imshow(Z2-Z1, interpolation='bilinear')
11axis('off')
12show()
Note: See TracBrowser for help on using the repository browser.