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)
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)
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)
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)