Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9522444

Browse files
committed
0.72 release
svn path=/trunk/matplotlib/; revision=971
1 parent b3c6ed2 commit 9522444

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

examples/contour_demo.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
from pylab import *
33

44
delta = 0.025
5-
x = y = arange(-3.0, 3.0, delta)
5+
x = arange(-3.0, 3.0, delta)
6+
y = arange(-2.0, 2.0, delta)
67
X, Y = meshgrid(x, y)
78
Z1 = bivariate_normal(X, Y, 1.0, 1.0, 0.0, 0.0)
89
Z2 = bivariate_normal(X, Y, 1.5, 0.5, 1, 1)

examples/contour_demo2.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,15 @@
22
from pylab import *
33

44
delta = 0.025
5-
x = y = arange(-3.0, 3.0, delta)
5+
x = arange(-3.0, 3.0, delta)
6+
y = arange(-2.0, 2.0, delta)
7+
68
X, Y = meshgrid(x, y)
79
Z1 = bivariate_normal(X, Y, 1.0, 1.0, 0.0, 0.0)
810
Z2 = bivariate_normal(X, Y, 1.5, 0.5, 1, 1)
911

1012
# difference of Gaussians
11-
im = imshow(Z2-Z1, interpolation='bilinear', cmap=cm.gray, extent=(-3,3,-3,3))
13+
im = imshow(Z2-Z1, interpolation='bilinear', cmap=cm.gray, extent=(-3,3,-2,2))
1214
levels, colls = contour(X, Y, Z2-Z1, linewidths=2)
1315
colorbar()
1416
hot()

0 commit comments

Comments
 (0)