Skip to main content

A geospatial plotting library built on top of geopandas.

Project description

gspatial_plot

License Code style: black Downloads Documentation Status

A geospatial plotting library built on top of geopandas. The aim of this library is to simplify generation of various geospatial plot and provide a simple interface to various commonly used geospatial plot types.

Documentation

Welcome to gspatial-plot’s documentation! — gspatial-plot 0.1.0a0 documentation

Features

  1. Simple API

  2. Better defaults compared to vanilla geopandas plot

  3. Customizations made simple

  4. Compatible with other geopandas or matplotlib axis objects

  5. Provides functions for plotting bubbleplots, cartograms, heatmaps, spikemaps and densityplots

Installing

pip install gspatial-plot

Usage

import gspatial_plot as gsp

usa = gsp.us_states


usa = usa[
    ~usa["NAME"].isin(
        [
            "Hawaii",
            "Guam",
            "American Samoa",
            "Commonwealth of the Northern Mariana Islands",
            "Alaska",
        ]
    )
]


gsp.randommap(usa, seed=3, annot=True, annot_column="NAME", figsize=(30, 30))
gsp.shapeplot(usa, figsize=(15, 15))
gsp.pointplot(usa_points, base=usa)
gsp.choropleth(usa, "AWATER")
gsp.bubblemap(usa, usa["AWATER"])
gsp.cartogram(
    usa,
    "AWATER",
)
gsp.densityplot(usa, clip=True, clip_factor=1.5)
gsp.heatmap(usa, "AWATER")
gsp.spikemap(usa, "AWATER")
gsp.offline_static_basemap()
gsp.offline_folium_basemap(crs="EPSG4326")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gspatial_plot-0.2.0.tar.gz (2.2 MB view details)

Uploaded Source

Built Distribution

gspatial_plot-0.2.0-py3-none-any.whl (2.2 MB view details)

Uploaded Python 3

File details

Details for the file gspatial_plot-0.2.0.tar.gz.

File metadata

  • Download URL: gspatial_plot-0.2.0.tar.gz
  • Upload date:
  • Size: 2.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for gspatial_plot-0.2.0.tar.gz
Algorithm Hash digest
SHA256 0f36aedcde2fc69d3c2230bb622f759c9a852630774a778e727261140ada3af2
MD5 368e6040c4533429587469b34a51f651
BLAKE2b-256 2592a5a3f0710f21bd6efc21e4b69c7df6e89554ae581a30a598f1564da22e07

See more details on using hashes here.

File details

Details for the file gspatial_plot-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for gspatial_plot-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dfcdfdb660f1392a933342708c96b5eeff7e4ab0c64db56dd04b1c4039f7f16c
MD5 2228ce7c41b3dad31fc0445fa49ef86f
BLAKE2b-256 fd4d14776178355163ff61ce4c9da0f6b7d47ccdfc136e8cfb54b116126fb452

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page