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

Skip to content

Commit aae8eee

Browse files
committed
fixed an image bug
svn path=/trunk/matplotlib/; revision=5309
1 parent 0bc9e9b commit aae8eee

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/matplotlib/image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -691,7 +691,7 @@ def pil_to_array( pilImage ):
691691
grayscale images, the return array is MxN. For RGB images, the
692692
return value is MxNx3. For RGBA images the return value is MxNx4
693693
"""
694-
def toarray(im)
694+
def toarray(im):
695695
'return a 1D array of floats'
696696
x_str = im.tostring('raw',im.mode,0,-1)
697697
x = np.fromstring(x_str,np.uint8)

0 commit comments

Comments
 (0)