I'm having the exact same issue as described in this question: AttributeError: 'FigureCanvasInterAgg' object has no attribute 'renderer'
Basically, I try to convert a pyplot fig to a numpy array:
X = np.array(fig.canvas.buffer_rgba())
however I get the following error:
'FigureCanvasAgg' object has no attribute 'renderer'
The error seems to be PyCharm specific and could apparently be solved by manipulating the "backend_interagg.py" file in the "helpers" folder in the PyCharm installation directory.
However, I can't locate the helpers folder for PyCharm on mac. Could you tell me how to navigate to the required folder to make the suggested changes (see link above)?
Thanks a lot!