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

Skip to content

Commit 2da662b

Browse files
committed
don't use implicit tuple assignment
1 parent 3bd0f57 commit 2da662b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/pylab_examples/image_origin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from pylab import *
99

1010
x = arange(100.0)
11-
x.shape = 10, 10
11+
x.shape = (10, 10)
1212

1313
interp = 'bilinear'
1414
#interp = 'nearest'

examples/pylab_examples/layer_images.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def func3(x, y):
2929
fig = plt.figure(frameon=False)
3030

3131
Z1 = array(([0, 1]*4 + [1, 0]*4)*4)
32-
Z1.shape = 8, 8 # chessboard
32+
Z1.shape = (8, 8) # chessboard
3333
im1 = imshow(Z1, cmap=cm.gray, interpolation='nearest',
3434
extent=extent)
3535
hold(True)

0 commit comments

Comments
 (0)