From f3be62ba5e7ea74529826957bf2cc470b66789c3 Mon Sep 17 00:00:00 2001 From: Ekaterina Tuzova Date: Thu, 24 Jan 2019 16:11:36 +0300 Subject: [PATCH] PY-33673 AttributeError: 'FigureCanvasInterAgg' object has no attribute 'renderer' when trying to save plot to numpy array. --- python/helpers/pycharm_matplotlib_backend/backend_interagg.py | 1 + 1 file changed, 1 insertion(+) diff --git a/python/helpers/pycharm_matplotlib_backend/backend_interagg.py b/python/helpers/pycharm_matplotlib_backend/backend_interagg.py index c0221ea54e78..1e10a4f12930 100644 --- a/python/helpers/pycharm_matplotlib_backend/backend_interagg.py +++ b/python/helpers/pycharm_matplotlib_backend/backend_interagg.py @@ -80,6 +80,7 @@ class FigureCanvasInterAgg(FigureCanvasAgg): display(DisplayDataObject(plot_index, width, buffer)) def draw(self): + FigureCanvasAgg.draw(self) is_interactive = os.getenv("PYCHARM_MATPLOTLIB_INTERACTIVE", False) if is_interactive and matplotlib.is_interactive(): self.show()