Bug description
plt.show() is only printing a UserWarning and not showing the plot.
Only solution I found that worked is:
matplotlib.use('tkagg')
Version
Windows
To reproduce
import matplotlib.pyplot as plt
plt.plot([1,2,3],[2,3,4]) # or anything else
plt.show()
Relevant log output
For matplotlib 3.8
UserWarning: FigureCanvasAgg is non-interactive, and thus cannot be shown
For matplotlib <= 3.7
UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure.
Add any relevant information, e.g. used compiler, screenshots.
No response
Checklist
Bug description
plt.show()is only printing a UserWarning and not showing the plot.Only solution I found that worked is:
matplotlib.use('tkagg')Version
Windows
To reproduce
Relevant log output
For matplotlib 3.8 UserWarning: FigureCanvasAgg is non-interactive, and thus cannot be shown For matplotlib <= 3.7 UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure.Add any relevant information, e.g. used compiler, screenshots.
No response
Checklist