Skip to main content

Visual analytics for spatial analysis with PySAL.

Project description

splot

unittests codecov Documentation Status PyPI version DOI DOI

Visual analytics for spatial analysis with PySAL.

Local Spatial Autocorrelation

What is splot?

splot connects spatial analysis done in PySAL to different popular visualization toolkits like matplotlib. The splot package allows you to create both static plots ready for publication and interactive visualizations for quick iteration and spatial data exploration. The primary goal of splot is to enable you to visualize popular PySAL objects and gives you different views on your spatial analysis workflow.

If you are new to splot and PySAL you will best get started with our documentation and the short introduction video of the package at the Scipy 2018 conference!

Installing splot

Installing dependencies

splot is compatible with Python 3.8+ and depends on geopandas 0.4.0 or later and matplotlib 2.2.2 or later.

splot also uses

  • numpy
  • seaborn
  • mapclassify
  • Ipywidgets

Depending on your spatial analysis workflow and the PySAL objects you would like to visualize, splot relies on:

  • PySAL 2.0

or separate packages found in the PySAL stack:

  • esda
  • libpysal
  • spreg
  • giddy

Installing splot

There are two ways of accessing splot. First, splot is installed with the PySAL 2.0 metapackage through:

$ pip install -U pysal

or

$ conda install -c conda-forge pysal

Second, splot can be installed as a separate package. If you are using Anaconda, install splot via the conda utility:

conda install -c conda-forge splot

Otherwise you can install splot from PyPI with pip:

pip install splot

Usage

Usage examples for different spatial statistical workflows are provided as notebooks:

You can also check our documentation for examples on how to use each function. A detailed report about the development, structure and usage of splot can be found here. More tutorials for the whole PySAL ecosystem can be found in our notebooks book project.

Contributing to splot

splot is an open source project within the Python Spatial Analysis Library that is supported by a community of Geographers, visualization lovers, map fans, users and data scientists. As a community we work together to create splot as our own spatial visualization toolkit and will gratefully and humbly accept any contributions and ideas you might bring into this project.

Feel free to check out our discussion spaces, add ideas and contributions:

If you have never contributed before or you are just discovering what PySAL and splot have to offer, reading through """Doc-strings""" and correcting our Documentation can be a great way to start. Check for spelling and grammar mistakes or use pep8 and pyflakes to clean our .py files. This will allow you to get used to working with git and generally allows you to familiarize yourself with the splot and PySAL code base.

If you have already used PySAL and splot and you are missing object-specific views for your analysis feel free to add to our code-base or discuss your ideas. Please make sure you include unit test, documentation and examples or (create an issue so someone else can work together with you). The common splot API design discussed here can help you to decide how to best integrate your visualization prototype into splot.

Beyond working on documentation and prototyping new visualizations, you can always write a bug report or feature request on Github issues. Whether large or small, any contribution makes a big difference and we hope you enjoy being part of our community as much as we do! The only thing we ask is that you abide principles of openness, respect, and consideration of others as described in the PySAL Code of Conduct.

Road-map

We are planning on extending splot's visualization toolkit in future. Functionality we plan to implement includes:

  • visualisations for density methods (mapping density estimations)
  • cross-hatching fill styles for maps (to allow choropleth visualizations without class intervals)
  • legendgrams (map legends that visualize the distribution of observations by color in a given map)

If you are interested in working on one of these or any other methods, check out the linked issues or get in touch!

Community support

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

splot-1.1.5.post1.tar.gz (52.5 kB view details)

Uploaded Source

Built Distribution

splot-1.1.5.post1-py3-none-any.whl (39.2 kB view details)

Uploaded Python 3

File details

Details for the file splot-1.1.5.post1.tar.gz.

File metadata

  • Download URL: splot-1.1.5.post1.tar.gz
  • Upload date:
  • Size: 52.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for splot-1.1.5.post1.tar.gz
Algorithm Hash digest
SHA256 86a2bb0259996bc643a30535a280b3ccb902697dddb65c0de91b3ad4046f2e90
MD5 13f86c14c8aade5193033278245535f2
BLAKE2b-256 fb8c4e2e1ca9038dd45e57798010f37b66b6512691ded38bc136f8fb732b523b

See more details on using hashes here.

File details

Details for the file splot-1.1.5.post1-py3-none-any.whl.

File metadata

  • Download URL: splot-1.1.5.post1-py3-none-any.whl
  • Upload date:
  • Size: 39.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for splot-1.1.5.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 f732074c986bd7aa27dfef33171dc068e6acf84ab4de94c7e1adb3bba33cf4e3
MD5 2b453a27558e2fe781309fddafd4a667
BLAKE2b-256 2b1d088c7ef6c29f9153da0df211b0cacb6885ae10effd3dbed205b877e69b14

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