示例#1
0
    gcrs.Miller(),
    gcrs.Mollweide(),
    gcrs.Robinson(),
    gcrs.Sinusoidal(),
    pytest.param(gcrs.InterruptedGoodeHomolosine(), marks=pytest.mark.xfail),
    pytest.param(gcrs.Geostationary(), marks=pytest.mark.xfail),
    gcrs.NorthPolarStereo(),
    gcrs.SouthPolarStereo(),
    gcrs.Gnomonic(),
    gcrs.AlbersEqualArea(),
    gcrs.AzimuthalEquidistant(),
    gcrs.LambertConformal(),
    gcrs.Orthographic(),
    gcrs.Stereographic(),
    pytest.param(gcrs.TransverseMercator(), marks=pytest.mark.xfail),
    gcrs.LambertAzimuthalEqualArea(),
    gcrs.WebMercator()
])
def test_basic_global_projections(proj, countries):
    gplt.polyplot(countries, proj)
    ax = plt.gca()
    ax.set_global()
    return plt.gcf()


@pytest.mark.mpl_image_compare
@pytest.mark.parametrize("proj", [
    gcrs.EuroPP(),
    gcrs.OSGB(),
])
def test_basic_non_global_projections(proj, countries):
示例#2
0
        gcrs.Miller(),
        gcrs.Mollweide(),
        gcrs.Robinson(),
        gcrs.Sinusoidal(),
        gcrs.InterruptedGoodeHomolosine(),
        gcrs.Geostationary(),
        gcrs.NorthPolarStereo(),
        gcrs.SouthPolarStereo(),
        gcrs.Gnomonic(),
        gcrs.AlbersEqualArea(),
        gcrs.AzimuthalEquidistant(),
        gcrs.LambertConformal(),
        gcrs.Orthographic(),
        gcrs.Stereographic(),
        gcrs.TransverseMercator(),
        gcrs.LambertAzimuthalEqualArea()
        # # TODO: Include other new ones.
    ])
def test_basic_global_projections(proj, countries):
    gplt.polyplot(countries, proj)
    ax = plt.gca()
    ax.set_global()

    return plt.gcf()


@pytest.mark.mpl_image_compare
@pytest.mark.parametrize("proj", [
    gcrs.EuroPP(),
    gcrs.OSGB(),
])