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.2.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.2-py3-none-any.whl (2.2 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gspatial_plot-0.1.2.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.1.2.tar.gz
Algorithm Hash digest
SHA256 1b810c63aacce660af4ae63baa399f191b650ea95c80e4fe8afb1d71d1ae425b
MD5 388bd5bd8f2cda54ef76b7b859343f46
BLAKE2b-256 81bb4c06f760b1439d5eb11c0601fd3c4184426991c51262cc96a2025df96b8e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gspatial_plot-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 2.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for gspatial_plot-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 77d24b7a4752c357d58ab61d8323e98ae2ba5405ae87cdcb43b9b04c5d701cd4
MD5 b741861c9f5ea10435e43a3bfe1ad16e
BLAKE2b-256 e757980bba8cca7665bb291695b074b313826614ab07b4a17c944ce2d9d6fa44

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