I wrote a script that calls functions from QIIME to build many graphs, among other things. Everything works fine until completion, but matplotlib always gives the following feedback for each chart created (super annoying):
/usr/local/lib/python2.7/dist-packages/matplotlib/pyplot.py:412: RuntimeWarning: More than 20 shapes open. Pictures created using the pyplot interface ( matplotlib.pyplot.figure ) are saved until they are explicitly closed and may take up too much memory. (To control this warning, see rcParam figure.max_num_figures ). max_open_warning, RuntimeWarning)
I found this page, which seems to explain how to solve this problem, but after I follow the instructions, nothing changes:
import matplotlib as mpl mpl.rcParams[figure.max_open_warning'] = 0
I entered the file after calling matplotlib directly from python to see which rcparams file I should examine, and manually changed 20 to 0. Still unchanged. In case the documentation was incorrect, I also changed it to 1000, and still get the same warnings.
I understand that this can be a problem for people working on computers with limited power, but in my case this is not a problem. How can I make this review disappear forever?
matplotlib warnings runtime
Brassmonkey
source share