A geospatial plotting library built on top of geopandas.
Project description
gspatial_plot
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
-
Simple API
-
Better defaults compared to vanilla geopandas plot
-
Customizations made simple
-
Compatible with other geopandas or matplotlib axis objects
-
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
Release history Release notifications | RSS feed
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.0a1.tar.gz
(2.2 MB
view hashes)
Built Distribution
Close
Hashes for gspatial_plot-0.1.0a1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1e340818ebee1dbb34a41ec40f9e8cb256a9c4890969ef52d3054a222ad7df9 |
|
MD5 | 6cb26c3c42214be32ec8527c474827de |
|
BLAKE2b-256 | 0d229557e157772f7b3eb750ecb48d468d08cdc7c0ce9eecfe4241c1a1ba5095 |