Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -68,12 +68,16 @@ def create_chart_analysis(interval, asset_name):
|
|
| 68 |
ylabel='Price (USD)',
|
| 69 |
volume=True,
|
| 70 |
addplot=ap,
|
| 71 |
-
figsize=(15, 9), #
|
| 72 |
returnfig=True,
|
| 73 |
warn_too_much_data=200,
|
| 74 |
tight_layout=True
|
| 75 |
)
|
| 76 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 77 |
# Adjust layout
|
| 78 |
fig.patch.set_facecolor('white')
|
| 79 |
if axes:
|
|
|
|
| 68 |
ylabel='Price (USD)',
|
| 69 |
volume=True,
|
| 70 |
addplot=ap,
|
| 71 |
+
figsize=(15, 9), # DITINGKATKAN
|
| 72 |
returnfig=True,
|
| 73 |
warn_too_much_data=200,
|
| 74 |
tight_layout=True
|
| 75 |
)
|
| 76 |
|
| 77 |
+
# Perbaikan untuk mencegah pemotongan label sumbu Y di Gradio
|
| 78 |
+
if fig:
|
| 79 |
+
plt.subplots_adjust(right=0.95) # Tambahkan margin kanan
|
| 80 |
+
|
| 81 |
# Adjust layout
|
| 82 |
fig.patch.set_facecolor('white')
|
| 83 |
if axes:
|