-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] matplotlib error in headless mode
- Loading branch information
Showing
2 changed files
with
7 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
import matplotlib | ||
matplotlib.use('tkagg') # prevent issues of cv2 in combination with Qt platform plugin "xcb" | ||
try: | ||
import matplotlib | ||
matplotlib.use('tkagg') # prevent issues with cv2 in combination with the Qt platform plugin "xcb" | ||
except ImportError: | ||
import warnings | ||
warnings.warn("Could not set matplotlib backend to 'tkagg'. This might cause issues with cv2 in combination with the Qt platform plugin 'xcb'.") | ||
|
||
__version__ = '0.2.0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
checkerboard==0.2.4 | ||
cvxopt==1.3.1 | ||
cvxpy==1.3.1 | ||
matplotlib==3.7.4 | ||
motion3d>=0.1 | ||
networkx==3.1 | ||
numpy>=1.24 | ||
|