Spaces:
Running
Running
add Hline
Browse files- app.py +2 -1
- requirements.txt +1 -0
app.py
CHANGED
|
@@ -3,6 +3,7 @@ import numpy as np
|
|
| 3 |
import math
|
| 4 |
|
| 5 |
import hvplot as hv
|
|
|
|
| 6 |
import panel as pn
|
| 7 |
import hvplot.pandas
|
| 8 |
|
|
@@ -43,7 +44,7 @@ def simulate(initialcapital , bet_chance , betsize , rewardrisk, riskpercent, ma
|
|
| 43 |
|
| 44 |
all_profits.append(profits)
|
| 45 |
df = pd.DataFrame(all_profits).T
|
| 46 |
-
plot1 = df.hvplot.line( logy=True, height=600, width=1200).opts(show_grid=True, ylabel='Profit', xlabel='Bet')
|
| 47 |
|
| 48 |
bust = [ x for x in all_profits if x[-1] <= 1 ]
|
| 49 |
rich = [ x for x in all_profits if x[-1] >= max_profit ]
|
|
|
|
| 3 |
import math
|
| 4 |
|
| 5 |
import hvplot as hv
|
| 6 |
+
import holoviews as hvs
|
| 7 |
import panel as pn
|
| 8 |
import hvplot.pandas
|
| 9 |
|
|
|
|
| 44 |
|
| 45 |
all_profits.append(profits)
|
| 46 |
df = pd.DataFrame(all_profits).T
|
| 47 |
+
plot1 = df.hvplot.line( logy=True, height=600, width=1200).opts(show_grid=True, ylabel='Profit', xlabel='Bet') * hvs.Hline(max_profit)
|
| 48 |
|
| 49 |
bust = [ x for x in all_profits if x[-1] <= 1 ]
|
| 50 |
rich = [ x for x in all_profits if x[-1] >= max_profit ]
|
requirements.txt
CHANGED
|
@@ -1,3 +1,4 @@
|
|
| 1 |
panel
|
| 2 |
hvplot
|
|
|
|
| 3 |
bokeh
|
|
|
|
| 1 |
panel
|
| 2 |
hvplot
|
| 3 |
+
holoviews
|
| 4 |
bokeh
|