diff --git a/python/helpers/pycharm_matplotlib_backend/backend_interagg.py b/python/helpers/pycharm_matplotlib_backend/backend_interagg.py index cbf78c40a199..1a4483ff3f08 100644 --- a/python/helpers/pycharm_matplotlib_backend/backend_interagg.py +++ b/python/helpers/pycharm_matplotlib_backend/backend_interagg.py @@ -101,17 +101,12 @@ class FigureCanvasInterAgg(FigureCanvasAgg): # mpld3 doesn't support 3D plots if IS_INTERACTIVE_PLOT and not html_string: w, h = self.figure.get_figwidth(), self.figure.get_figheight() - self.figure.set_figwidth(DEFAULT_FIGURE_WIDTH) - self.figure.set_figheight(DEFAULT_FIGURE_HEIGHT) try: html_string = mpld3.fig_to_html(self.figure) except: pass - self.figure.set_figwidth(w) - self.figure.set_figheight(h) - render = self.get_renderer() width = int(render.width) debug("Image width: %d" % width)