0

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!

RayBuehler
  • 11
  • 2
  • Question needs some code Please provide enough code so others can better understand or reproduce the problem. https://stackoverflow.com/help/minimal-reproducible-example – D.L Mar 23 '22 at 11:14

0 Answers0