Skip to content
Advertisement

Matplotlib throws warning message because of findfont – python

I want to plot a basic graph, basically consisting of two lists of the form x = [1,2,3,…,d], y = [y1,y2,…,yd]. after using_ pyplot.plot(x,y) I get a huge amount of warning messages referring to findfont errors (see below..)

I just installed matplotlib. All the threads I could find refer to changing fonts manually and having warning messages popping up. I did not do anything like that. I just installed the package and that is it.

I am using pycharm, python 3.6 and windows for programming.

JavaScript

Advertisement

Answer

Just as an alternative solution, you can disable the matplotlib font manager logger.

JavaScript

Or you can just suppress the DEBUG messages but not the others from that logger.

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement