Skip to content

Commit

Permalink
Added comment to note the reason for the try block
Browse files Browse the repository at this point in the history
  • Loading branch information
cmmorrow committed Mar 28, 2018
1 parent 5e454e3 commit f4af079
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sci_analysis/graphs/vector.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ def draw(self):
ax_hist = subplot(gs[len(h_ratios) - 1])

# Draw the histogram
# First try to use the density arg which replaced normed (which is now depricated) in matplotlib 2.2.2
try:
ax_hist.hist(self._data.data, self._bins, density=True, color=self.get_color(0), zorder=0)
except TypeError:
Expand Down

0 comments on commit f4af079

Please sign in to comment.