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

Skip to content

Commit 4107850

Browse files
committed
Use non-equal dimensions for mesh to highlight bug in pcolormesh (if
it ever returns). svn path=/branches/transforms/; revision=4566
1 parent 446e02b commit 4107850

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/quadmesh_demo.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313

1414
n = 56
1515
x = npy.linspace(-1.5,1.5,n)
16-
X,Y = npy.meshgrid(x,x);
16+
y = npy.linspace(-1.5,1.5,n*2)
17+
X,Y = npy.meshgrid(x,y);
1718
Qx = npy.cos(Y) - npy.cos(X)
1819
Qz = npy.sin(Y) + npy.sin(X)
1920
Qx = (Qx + 1.1)

0 commit comments

Comments
 (0)