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

Skip to content

Commit c301cf1

Browse files
committed
fix problem with hist
svn path=/trunk/matplotlib/; revision=6056
1 parent 414a9d7 commit c301cf1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

examples/pylab_examples/mri_with_eeg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
if 1: # plot the histogram of MRI intensity
2525
subplot(222)
2626
im = ravel(im)
27-
im = take(im, nonzero(im)) # ignore the background
27+
im = ravel(take(im, nonzero(im))) # ignore the background
2828
im = im/(2.0**15) # normalize
2929
hist(im, 100)
3030
xticks([-1, -.5, 0, .5, 1])

0 commit comments

Comments
 (0)