Update app.py
Browse files
app.py
CHANGED
|
@@ -103,7 +103,14 @@ def plot_opciones(df_put, df_call, ticker_input, expiration_date):
|
|
| 103 |
xaxis_title='Strike',
|
| 104 |
yaxis_title='Volumen',
|
| 105 |
barmode='stack',
|
| 106 |
-
template='plotly_white'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 107 |
|
| 108 |
|
| 109 |
fig2 = go.Figure()
|
|
@@ -133,7 +140,14 @@ def plot_opciones(df_put, df_call, ticker_input, expiration_date):
|
|
| 133 |
title=f"Volatilidad Implícita por Strike {ticker_input}",
|
| 134 |
xaxis_title='Strike',
|
| 135 |
yaxis_title='Volatilidad Implícita',
|
| 136 |
-
template='plotly_white'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 137 |
)
|
| 138 |
|
| 139 |
return fig1, fig2
|
|
|
|
| 103 |
xaxis_title='Strike',
|
| 104 |
yaxis_title='Volumen',
|
| 105 |
barmode='stack',
|
| 106 |
+
template='plotly_white',
|
| 107 |
+
legend=dict(
|
| 108 |
+
orientation="h",
|
| 109 |
+
yanchor="top",
|
| 110 |
+
y=-0.2,
|
| 111 |
+
xanchor="center",
|
| 112 |
+
x=0.5)
|
| 113 |
+
)
|
| 114 |
|
| 115 |
|
| 116 |
fig2 = go.Figure()
|
|
|
|
| 140 |
title=f"Volatilidad Implícita por Strike {ticker_input}",
|
| 141 |
xaxis_title='Strike',
|
| 142 |
yaxis_title='Volatilidad Implícita',
|
| 143 |
+
template='plotly_white',
|
| 144 |
+
legend=dict(
|
| 145 |
+
orientation="h",
|
| 146 |
+
yanchor="top",
|
| 147 |
+
y=-0.2,
|
| 148 |
+
xanchor="center",
|
| 149 |
+
x=0.5)
|
| 150 |
+
|
| 151 |
)
|
| 152 |
|
| 153 |
return fig1, fig2
|