8000 close figs after tests · rocsys/spatialmath-python@33c3f81 · GitHub
[go: up one dir, main page]

Skip to content

Commit 33c3f81

Browse files
committed
close figs after tests
1 parent 5f361c8 commit 33c3f81

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

tests/base/test_transforms3d_plot.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@
2222

2323

2424
class Test3D(unittest.TestCase):
25-
26-
< 8000 /code>
2725
def test_plot(self):
2826
plt.figure()
2927
# test options
@@ -65,7 +63,9 @@ def test_plot(self):
6563
T = [transl(1, 2, 3), transl(2, 3, 4), transl(3, 4, 5)]
6664
trplot(T)
6765

68-
plt.clf()
66+
plt.close("all")
67+
68+
def test_animate(self):
6969
tranimate(transl(1, 2, 3), repeat=False, wait=True)
7070

7171
tranimate(transl(1, 2, 3), repeat=False, wait=True)
@@ -75,9 +75,7 @@ def test_plot(self):
7575
plt.close("all")
7676
# test animate with line not arrow, text, test with SO(3)
7777

78-
7978

8079
# ---------------------------------------------------------------------------------------#
8180
if __name__ == "__main__":
82-
8381
unittest.main()

0 commit comments

Comments
 (0)
0