diff --git a/ffn/core.py b/ffn/core.py index e55cbac4..a435d16e 100644 --- a/ffn/core.py +++ b/ffn/core.py @@ -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: