rcParam figure.max_open_warning

I am attempting to perform a 2D classification using 100 iterations for 50 classes. My job stops at 44 iterations with the error message (truncated):

More than 20 figures have been opened. Figures created through the pyplot interface (matplotlib.pyplot.figure) are retained until explicitly closed and may consume too much memory. (To control this warning, see the rcParam figure.max_open_warning)

I imagine this is a hardware limitation. Unclear how to access rcParam and no mention in the discussions I could find. Currently using v0.6.5

Any insights/help would be greatly appreciated.

Kind regards,