Skip to content

Commit 808410b

Browse files
Elizaveta239intellij-monorepo-bot
authored andcommitted
PY-56370 No plots with Matplotlib 3.6.0: `AttributeError: module 'backend_interagg' has no attribute 'FigureCanvas'
Add dummy support for the new pyplot API (cherry picked from commit a57cfa1a3cd05b211f02eb22bb703fa5ad72404a) IJ-CR-95901 GitOrigin-RevId: 73f39d1900cf9fbacdde231667a96fc5abc3deeb
1 parent a2800ca commit 808410b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎python/helpers/pycharm_matplotlib_backend/backend_interagg.py‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,3 +129,7 @@ def _repr_display_(self):
129129
'image_base64': image_bytes_base64
130130
}
131131
return ('pycharm-plot-image', body)
132+
133+
134+
FigureCanvas = FigureCanvasAgg
135+
FigureManager = FigureManagerInterAgg

0 commit comments

Comments
 (0)