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

Skip to content

Commit e12e3c4

Browse files
committed
Clean up a few style issues
1 parent 7ba1743 commit e12e3c4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lib/matplotlib/axes.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8003,12 +8003,12 @@ def hist(self, x, bins=10, range=None, normed=False, weights=None,
80038003
# this will automatically overwrite bins,
80048004
# so that each histogram uses the same bins
80058005
m, bins = np.histogram(x[i], bins, weights=w[i], **hist_kwargs)
8006-
if mlast == None :
8006+
if mlast is None:
80078007
mlast = np.zeros(len(bins)-1, np.int)
80088008
if normed:
80098009
db = np.diff(bins)
80108010
m = (m.astype(float) / db) / m.sum()
8011-
if stacked :
8011+
if stacked:
80128012
m += mlast
80138013
mlast[:] = m
80148014
n.append(m)
@@ -8023,7 +8023,7 @@ def hist(self, x, bins=10, range=None, normed=False, weights=None,
80238023
else:
80248024
n = [m[slc].cumsum()[slc] for m in n]
80258025

8026-
if stacked :
8026+
if stacked:
80278027
n.reverse() # put them back in the right order
80288028

80298029
patches = []

0 commit comments

Comments
 (0)