philipperemy / deep-learning-bitcoin

Exploiting Bitcoin prices patterns with Deep Learning.
Apache License 2.0
528 stars 134 forks source link

matplotlib.finance deprecated #22

Open barl0g opened 4 years ago

barl0g commented 4 years ago
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,
thetrung commented 3 years ago

@barl0g how did the bot work ?