Hello, I am trying to get my streamlit page to show all of my graphs created by using matplotlib. I keep getting the same error, âUserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure,â and although I have tried many options nothing has helped. How do I fix this? My site keeps coming up blank. I want all of my graphs to appear on the site. I am also using anaconda.
Hereâs an example of one of the graphs.
fig, ax = plt.subplots()
x = [âConsecutive Readsâ, âSequential Readsâ]
y = [consec_read_pct3, consec_read_pct4]
ax.bar(x, y)
ax.set_ylabel(âPercentageâ)
ax.set_ylim(0, 100)
plt.show()