Skip to content

Commit

Permalink
Fix FigureCanvasMac Render
Browse files Browse the repository at this point in the history
Using functionalities in Render on macOS (M1, Monterey) that generate a canvas with visual output (e.g. 'filter picks by locs') produces the following error: AttributeError: 'FigureCanvasMac' object has no attribute 'renderer'.

Adding the line 'matplotlib.use('agg')' fixes this (e.g. described here tomsilver/pddlgym#47)
  • Loading branch information
steinjohannes committed Jul 23, 2022
1 parent dafb386 commit 370d5aa
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 0 deletions.
Binary file added .DS_Store
Binary file not shown.
Binary file added picasso/.DS_Store
Binary file not shown.
1 change: 1 addition & 0 deletions picasso/gui/render.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

import lmfit
import matplotlib
matplotlib.use('agg')
import matplotlib.pyplot as plt
import matplotlib.patches as patches
import numpy as np
Expand Down

0 comments on commit 370d5aa

Please sign in to comment.