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.1.1.tar.gz (2.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: gspatial_plot-0.1.1.tar.gz
  • Upload date:
  • Size: 2.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.6

File hashes

Hashes for gspatial_plot-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e9e1f7c768069301f29ff02c82229c4e9fb2268dcc97b5e25f4674bfef15ba46
MD5 a8f2b99bd8a1998efde8df37c290aabb
BLAKE2b-256 227e7a00e2c021fccb3df6a5a8ccd951d444b233ac5a8dd611800ca7ef9b9f86

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gspatial_plot-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 2.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.6

File hashes

Hashes for gspatial_plot-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 39c02ff2c52a5c89f1da45bdeab7485eb29d702521702175e852c21589d79cb5
MD5 1c6a4ff22e40c60b929f4409db78f239
BLAKE2b-256 5a1ef1dcf3ebac5498e42cf96335e15a3c51dfb4ef7dddb23f096c42bb5c7247

See more details on using hashes here.

Supported by

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