UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure.

0 votes

Hi everyone,

I am trying to plot using matplotlib. But I am getting the below error.

UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure.

How can I solve this?

Thank You

Feb 27 in Machine Learning by akhtar
• 4,500 points
485 views

1 answer to this question.

0 votes

Hi@akhtar,

You need to install a GUI toolkit, so that Matplotlib can display graphics (outside of Jupyter, where the browser handles display). For example, if you install the pyqt package then PyPlot should automatically use the qt5agg backend.

$ pip3 install PyQt5==5.9.2

Hope this will work.
Thank You 

answered Mar 5 by MD
• 8,870 points

Related Questions In Machine Learning

0 votes
1 answer
0 votes
1 answer
0 votes
0 answers

How to know if a problem is solvable by machine learning?

I have recently started learning the machine. ...READ MORE

Nov 21, 2019 in Machine Learning by Hannah
• 18,030 points
78 views
0 votes
1 answer

What is Unsupervised Learning?

Unsupervised Learning is the training of machine ...READ MORE

answered May 8, 2019 in Machine Learning by Alok
97 views
+1 vote
1 answer

How to create plots using python matplotlib in IPython notebook?

I think you should try: I used %matplotlib inline in ...READ MORE

answered Aug 8, 2018 in Python by Priyaj
• 57,530 points
203 views
+1 vote
1 answer

How to handle Real-Time Matplotlib Plotting

To draw a continuous set of random ...READ MORE

answered Sep 26, 2018 in Python by Priyaj
• 57,530 points
6,464 views
0 votes
1 answer

How to increase plt.title font size?

Try the following : import matplotlib.pyplot as plt plt.figtext(.5,.9,'Temperature', ...READ MORE

answered Feb 11, 2019 in Python by SDeb
• 13,230 points
231 views