From f5bc65b877b1653c1bb497b59369b17a80626f0c Mon Sep 17 00:00:00 2001 From: Matthias Date: Mon, 9 Jul 2018 21:56:24 +0200 Subject: [PATCH 1/2] update plotly --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 8e6757edc..b04db6c56 100644 --- a/requirements.txt +++ b/requirements.txt @@ -22,4 +22,4 @@ coinmarketcap==5.0.3 scikit-optimize==0.5.2 # Required for plotting data -#plotly==2.7.0 +#plotly==3.0.0 From 6be6448334b5e5f4a30bee19b7854fecb0b4ce96 Mon Sep 17 00:00:00 2001 From: Matthias Date: Mon, 9 Jul 2018 21:56:29 +0200 Subject: [PATCH 2/2] replace "transparent" with rgb to fix exception in plotly 3.0.0 --- scripts/plot_dataframe.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/plot_dataframe.py b/scripts/plot_dataframe.py index 9724ff389..3b86afc9e 100755 --- a/scripts/plot_dataframe.py +++ b/scripts/plot_dataframe.py @@ -271,7 +271,7 @@ def generate_graph(pair, trades: pd.DataFrame, data: pd.DataFrame, args) -> tool x=data.date, y=data.bb_lowerband, name='BB lower', - line={'color': "transparent"}, + line={'color': 'rgba(255,255,255,0)'}, ) bb_upper = go.Scatter( x=data.date, @@ -279,7 +279,7 @@ def generate_graph(pair, trades: pd.DataFrame, data: pd.DataFrame, args) -> tool name='BB upper', fill="tonexty", fillcolor="rgba(0,176,246,0.2)", - line={'color': "transparent"}, + line={'color': 'rgba(255,255,255,0)'}, ) fig.append_trace(bb_lower, 1, 1) fig.append_trace(bb_upper, 1, 1)