@requires_application()
def test_figure_creation():
 with vp.Fig(show=False) as fig:
  fig[0, 0:2]
  fig[1:3, 0:2]
  ax_right = fig[1:3, 2]
  assert (fig[1:3, 2] is ax_right)
  assert_raises(ValueError, fig.__getitem__, (slice(1, 3), 1))

@ requires_application ( ) def test_figure_creation ( ) : with vp . Fig ( show = False ) as fig : fig [ 0 , 0 : 2 ] fig [ 1 : 3 , 0 : 2 ] ax_right = fig [ 1 : 3 , 2 ] assert ( fig [ 1 : 3 , 2 ] is ax_right ) assert_raises ( ValueError , fig . __getitem__ , ( slice ( 1 , 3 ) , 1 ) )
test creating a figure .