deep-learning-bitcoin icon indicating copy to clipboard operation
deep-learning-bitcoin copied to clipboard

matplotlib.finance deprecated

Open barl0g opened this issue 5 years ago • 1 comments

diff --git a/utils.py b/utils.py
index 1211118..bbd1f29 100644
--- a/utils.py
+++ b/utils.py
@@ -9,7 +9,7 @@ def compute_returns(p):
 
 def plot_p(df):
     import matplotlib.pyplot as plt
-    from matplotlib.finance import candlestick2_ohlc
+    from mpl_finance import candlestick2_ohlc
     fig, ax = plt.subplots()
     candlestick2_ohlc(ax,
                       df['price_open'].values,
@@ -26,7 +26,7 @@ def plot_p(df):
 
 def save_to_file(df, filename):
     import matplotlib.pyplot as plt
-    from matplotlib.finance import candlestick2_ohlc
+    from mpl_finance import candlestick2_ohlc
     fig, ax = plt.subplots()
     candlestick2_ohlc(ax,
                       df['price_open'].values,

barl0g avatar Jan 05 '20 18:01 barl0g

@barl0g how did the bot work ?

thetrung avatar Feb 27 '21 14:02 thetrung