Skip to content

Commit c5032cb

Browse files
committed
use agg backend when creating animate
because of this error: matplotlib/matplotlib#10287
1 parent a3855e0 commit c5032cb

3 files changed

Lines changed: 7 additions & 0 deletions

File tree

‎tests/test_display.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/usr/bin/env python3
22

3+
import matplotlib
4+
matplotlib.use('agg')
35
import pytest
46
import matplotlib.pyplot as plt
57
import plenoptic as po

‎tests/test_mad.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import matplotlib
2+
matplotlib.use('agg')
13
import pytest
24
import matplotlib.pyplot as plt
35
import plenoptic as po

‎tests/test_metamers.py‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
#!/usr/bin/env python3
2+
3+
import matplotlib
4+
matplotlib.use('agg')
25
import os.path as op
36
import torch
47
import plenoptic as po

0 commit comments

Comments
 (0)