File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -740,11 +740,11 @@ def test_figure_clear():
740
740
subaxes = subfig .add_subplot (111 )
741
741
mainaxes = fig .add_subplot (gs [1 ])
742
742
743
- # e.1) removing just the axis leaves the subplot
743
+ # e.1) removing just the axes leaves the subplot
744
744
mainaxes .remove ()
745
745
assert [subaxes ] == fig .axes
746
746
747
- # e.2) removing just the subaxis leaves the subplot
747
+ # e.2) removing just the subaxes leaves the subplot
748
748
# and subfigure
749
749
mainaxes = fig .add_subplot (gs [1 ])
750
750
subaxes .remove ()
@@ -753,7 +753,8 @@ def test_figure_clear():
753
753
754
754
# e.3) clearing the subfigure leaves the subplot
755
755
subaxes = subfig .add_subplot (111 )
756
- assert all (ax in fig .axes for ax in [mainaxes , subaxes ])
756
+ assert mainaxes in fig .axes
757
+ assert subaxes in fig .axes
757
758
subfig .clear ()
758
759
assert subfig in fig .subfigs
759
760
assert subaxes not in subfig .axes
You can’t perform that action at this time.
0 commit comments