Beispiel #1
0
 def test_close_figure_using_matplotlib(self):
     # check that matplotlib callback to `_on_close` is working fine
     fig = BlittedFigure()
     fig.create_figure()
     assert fig.figure is not None
     # Close using matplotlib, similar to using gui
     fig.figure.canvas.close_event()
     self._assert_figure_state_after_close(fig)
Beispiel #2
0
 def test_close_figure_using_close_method(self):
     fig = BlittedFigure()
     fig.create_figure()
     assert fig.figure is not None
     fig.close()
     self._assert_figure_state_after_close(fig)