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