How to use the geoplot.crs.PlateCarree function in geoplot

To help you get started, we’ve selected a few geoplot examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ResidentMario / geoplot / tests / mixin_tests.py View on Github external
def test_base_init(self):
        """Test the base init all plotters pass to Plot."""
        plot = Plot(self.gdf, **self.kwargs)
        assert plot.figsize == (8, 6)
        assert isinstance(plot.ax, SubplotBase)  # SO 11690597
        assert plot.extent == None
        assert plot.projection == None

        plot = Plot(self.gdf, **{**self.kwargs, **{'projection': gcrs.PlateCarree()}})
        assert plot.figsize == (8, 6)
        assert isinstance(plot.ax, GeoAxesSubplot)
        assert plot.extent == None
        assert isinstance(plot.projection, ccrs.PlateCarree)
github ResidentMario / geoplot / tests / mixin_tests.py View on Github external
def test_init_projection(self):
        """Test that passing a projection works as expected."""
        plot = Plot(self.gdf, **{**self.kwargs, 'projection': gcrs.PlateCarree()})
        assert isinstance(plot.projection, ccrs.PlateCarree)
github ResidentMario / geoplot / tests / kwarg_tests.py View on Github external
def test_pointplot(self):
        try:
            gplt.pointplot(list_gaussian_points, projection=gcrs.PlateCarree(), color='white')

            gplt.pointplot(list_gaussian_points, projection=gcrs.PlateCarree(), s=5)

            gplt.pointplot(list_gaussian_points, projection=gcrs.PlateCarree(),
                           legend_kwargs={'fancybox': False})
        finally: plt.close()
github ResidentMario / geoplot / tests / kwarg_tests.py View on Github external
def test_sankey(self):
        try:
            gplt.sankey(path=list_paths, projection=gcrs.PlateCarree(), edgecolor='white')
            gplt.sankey(path=list_paths, projection=gcrs.PlateCarree(), color='white')
            gplt.sankey(path=list_paths, projection=gcrs.PlateCarree(), linewidth=1)
            gplt.sankey(path=list_paths, projection=gcrs.PlateCarree(), linestyle='--')
        finally:
            plt.close()
github ResidentMario / geoplot / tests / kwarg_tests.py View on Github external
def test_cartogram(self):
        try:
            gplt.cartogram(dataframe_gaussian_polys, scale='hue_var',
                           projection=gcrs.PlateCarree(), facecolor='white')

            gplt.cartogram(dataframe_gaussian_polys, scale='hue_var',
                           projection=gcrs.PlateCarree(), legend_kwargs={'fancybox': False})
        finally:
            plt.close()
github ResidentMario / geoplot / tests / property_tests.py View on Github external
def test_polyplot(self):
        gplt.polyplot(gaussian_polys, projection=None)
        gplt.polyplot(gaussian_polys, projection=gcrs.PlateCarree())
        plt.close()
github ResidentMario / geoplot / tests / property_tests.py View on Github external
def test_kdeplot(self):

        # Just four code paths.
        try:
            gplt.kdeplot(gaussian_points, projection=None, clip=None)
            gplt.kdeplot(gaussian_points, projection=None, clip=gaussian_polys)
            gplt.kdeplot(gaussian_points, projection=gcrs.PlateCarree(), clip=gaussian_polys)
            gplt.kdeplot(gaussian_points, projection=gcrs.PlateCarree(), clip=gaussian_polys)
        finally:
            plt.close()
github ResidentMario / geoplot / tests / kwarg_tests.py View on Github external
def test_choropleth(self):
        try:
            gplt.choropleth(dataframe_gaussian_polys, hue='hue_var',
                            projection=gcrs.PlateCarree(), legend_kwargs={'fancybox': False})
        finally: plt.close()
github ResidentMario / geoplot / tests / kwarg_tests.py View on Github external
def test_polyplot(self):
        try: gplt.polyplot(list_gaussian_polys, projection=gcrs.PlateCarree(), color='white')
        finally: plt.close()
github ResidentMario / geoplot / tests / proj_tests.py View on Github external
    gcrs.PlateCarree(central_longitude=45),
    gcrs.LambertCylindrical(central_longitude=45),
    gcrs.Mercator(central_longitude=45),
    gcrs.Miller(central_longitude=45),
    gcrs.Mollweide(central_longitude=45),
    gcrs.Robinson(central_longitude=45),
    gcrs.Sinusoidal(central_longitude=45),
    pytest.param(gcrs.InterruptedGoodeHomolosine(central_longitude=45), marks=pytest.mark.xfail),
    pytest.param(gcrs.Geostationary(central_longitude=45), marks=pytest.mark.xfail),
    gcrs.NorthPolarStereo(central_longitude=45),
    gcrs.SouthPolarStereo(central_longitude=45),
    gcrs.Gnomonic(central_latitude=45),
    gcrs.AlbersEqualArea(central_longitude=45, central_latitude=45),
    gcrs.AzimuthalEquidistant(central_longitude=45, central_latitude=45),
    gcrs.LambertConformal(central_longitude=45, central_latitude=45),
    gcrs.Orthographic(central_longitude=45, central_latitude=45),
    gcrs.Stereographic(central_longitude=45, central_latitude=45),