示例#1
0
 def test_check_extent_required(self):
     cube = setup_2d_cube()
     plt.axes(projection=ccrs.Stereographic())
     qplt.pcolormesh(cube)
     set_global = cl.check_extent("using quickplot", True)
     self.assertTrue(set_global)
示例#2
0
 def test_check_extent_no_map(self):
     cube = setup_3d_cube()[0]
     qplt.contourf(cube)
     set_global = cl.check_extent("using quickplot", False)
     self.assertFalse(set_global)
示例#3
0
 def test_check_extent_not_required(self):
     cube = setup_2d_cube()
     qplt.contourf(cube)
     set_global = cl.check_extent("using quickplot", True)
     self.assertFalse(set_global)
示例#4
0
 def test_check_extent_without_quickplot(self):
     cube = setup_2d_cube()
     plt.contourf(cube.data)
     set_global = cl.check_extent("from data array", True)
     self.assertFalse(set_global)