[Help Me] Plot tidak masuk ke Flask Dashboard ketika di render #833
Answered
by
saskia-dwi-ulfah
ammaralwandi97
asked this question in
Q&A
-
Ini kode app.py saya
ini kode HTML nya
|
Beta Was this translation helpful? Give feedback.
Answered by
saskia-dwi-ulfah
Dec 19, 2023
Replies: 1 comment 3 replies
-
Pagi Pak @ammaralwandi97, Setelah mencoba code Bapak, kemungkinan tidak munculnya plot tersebut disebabkan oleh typo pada salah satu line code berikut:
dimana parameter Semoga membantu! |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Dear Pak @ammaralwandi97,
plot_result2
yang di-define
padaendpoint
yang berbeda. Anda bisa memindahkan semua kode untuk membuatplot_result2
ke fungsiindex
di bawahplot_result1
.plt.tight_layout
setiap sebelum menyimpan gambar denganplt.savefig
. Berikut adalah penggunaanplt.savefig()
dari kode repositori capstone Anda: