Skip to content

Commit

Permalink
Merge pull request #208 from timkpaine/tkp/mplv
Browse files Browse the repository at this point in the history
Compare matplotlib version using packaging.version
  • Loading branch information
timkpaine authored Nov 20, 2023
2 parents 64659cb + 389735f commit c130e9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ffn/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,7 @@ def plot_histogram(self, freq=None, figsize=(15, 5), title=None, bins=20, **kwar

plt.figure(figsize=figsize)

if matplotlib.__version__ > "2.":
if Version(matplotlib.__version__) >= Version("2"):
# normed deprecated
ax = ser.hist(bins=bins, figsize=figsize, density=True, **kwargs)
else:
Expand Down

0 comments on commit c130e9b

Please sign in to comment.