Skip to content

Commit

Permalink
More flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
andrzejnovak committed Nov 8, 2019
1 parent a923cd5 commit cacb9e9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .flake8
Expand Up @@ -13,4 +13,4 @@
# https://github.com/PyCQA/pycodestyle/issues/386
# W504: Raised by flake8 even when it is followed
max-line-length = 88
ignore = E402
ignore = E402, W504
6 changes: 3 additions & 3 deletions mplhep/plot.py
Expand Up @@ -63,8 +63,8 @@ def histplot(h, bins, weights=None, yerr=None,

_bin_widths = np.diff(bins)
if density:
_norm = (np.sum(h, axis=1 if h.ndim > 1 else 0)
/ (np.ones_like(h) * _bin_widths).T).T
_norm = (np.sum(h, axis=1 if h.ndim > 1 else 0) /
(np.ones_like(h) * _bin_widths).T).T
h = h / _norm

if yerr is not None:
Expand Down Expand Up @@ -150,7 +150,7 @@ def histplot(h, bins, weights=None, yerr=None,
_h = h[i]
ax.fill_between(bins, _h, step=_where,
label=_labels[i], **kwargs)

elif histtype == 'errorbar':
if _nh == 1:
ax.errorbar(_bin_centers, h, yerr=_yerr, ls='none',
Expand Down

0 comments on commit cacb9e9

Please sign in to comment.