mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PY-33673 AttributeError: 'FigureCanvasInterAgg' object has no attribute 'renderer' when trying to save plot to numpy array.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user