splot


Namesplot JSON
Version 1.1.5.post1 PyPI version JSON
download
home_pagehttps://github.com/pysal/splot
SummaryVisual analytics for spatial analysis with PySAL.
upload_time2022-04-13 21:13:32
maintainerSerge Rey, Stefanie Lumnitz
docs_urlNone
author
requires_python
license3-Clause BSD
keywords spatial statistics visualization
VCS
bugtrack_url
requirements esda geopandas giddy libpysal mapclassify matplotlib numpy packaging seaborn spreg
Travis-CI No Travis.
coveralls test coverage
            # splot

[![unittests](https://github.com/pysal/splot/workflows/.github/workflows/unittests.yml/badge.svg)](https://github.com/pysal/splot/actions?query=workflow%3A.github%2Fworkflows%2Funittests.yml)
[![codecov](https://codecov.io/gh/pysal/splot/branch/main/graph/badge.svg)](https://codecov.io/gh/pysal/splot)
[![Documentation Status](https://readthedocs.org/projects/splot/badge/?version=latest)](https://splot.readthedocs.io/en/latest/?badge=latest)
[![PyPI version](https://badge.fury.io/py/splot.svg)](https://badge.fury.io/py/splot)
[![DOI](https://joss.theoj.org/papers/10.21105/joss.01882/status.svg)](https://doi.org/10.21105/joss.01882)
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.3258810.svg)](https://doi.org/10.5281/zenodo.3258810)

**Visual analytics for spatial analysis with PySAL.**

![Local Spatial Autocorrelation](figs/viz_local_autocorrelation.png)

## What is splot?

`splot` connects spatial analysis done in [`PySAL`](https://github.com/pysal) to different popular visualization toolkits like [`matplotlib`](https://matplotlib.org).
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](https://splot.readthedocs.io/en/latest/) and the short introduction [video](https://youtu.be/kriQOJMycIQ?t=2403) 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](https://pysal.readthedocs.io/en/latest/installation.html) 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](https://github.com/pysal/splot/tree/main/notebooks):

* [for creating value-by-alpha maps](https://github.com/pysal/splot/blob/main/notebooks/mapping_vba.ipynb)
* [for assessing the relationship between neighboring polygons](https://github.com/pysal/splot/blob/main/notebooks/libpysal_non_planar_joins_viz.ipynb)
* [for the visualization of space-time autocorrelation](https://github.com/pysal/splot/blob/main/notebooks/giddy_space_time.ipynb), also documented in [giddy](https://github.com/pysal/giddy/blob/main/notebooks/directional.ipynb)
* for visualizing spatial autocorrelation of [univariate](https://github.com/pysal/splot/blob/main/notebooks/esda_morans_viz.ipynb) or [multivariate](https://github.com/pysal/splot/blob/main/notebooks/esda_moran_matrix_viz.ipynb) variable analysis

You can also check our [documentation](https://splot.readthedocs.io/en/latest/) for examples on how to use each function. A detailed report about the development, structure and usage of `splot` can be found [here](https://gist.github.com/slumnitz/a86ef4a5b48b1b5fac41e91cfd05fff2). More tutorials for the whole `PySAL` ecosystem can be found in our [notebooks book](http://pysal.org/notebooks/intro.html) 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:

* [Idea collection](https://github.com/pysal/splot/issues/10) which PySAL objects to support and how new visualizations could look like
* [Discussion](https://github.com/pysal/splot/issues/9) about the splot API
* Ideas how to integrate [other popular visualization toolkits](https://github.com/pysal/splot/issues/22) like `Bokeh` or `Altair`

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](https://pypi.org/project/pep8/) and [pyflakes](https://pypi.org/project/pyflakes/) to clean our `.py` files. This will allow you to get used to working with [git](https://try.github.io) 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](https://github.com/pysal/splot/issues/9) 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](https://github.com/pysal/splot/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](https://github.com/pysal/code_of_conduct/blob/master/README.md).

## Road-map

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

* visualisations for [density methods](https://github.com/pysal/splot/issues/32) (mapping density estimations)
* [cross-hatching fill styles](https://github.com/pysal/splot/issues/35) for maps (to allow choropleth visualizations without class intervals)
* [legendgrams](https://github.com/pysal/splot/issues/34) (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

* [PySAL 2.0](http://pysal.org)
* [Gitter chat splot](https://gitter.im/pysal/splot?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/pysal/splot",
    "name": "splot",
    "maintainer": "Serge Rey, Stefanie Lumnitz",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "sjsrey@gmail.com, stefanie.lumnitz@gmail.com",
    "keywords": "spatial statistics visualization",
    "author": "",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/fb/8c/4e2e1ca9038dd45e57798010f37b66b6512691ded38bc136f8fb732b523b/splot-1.1.5.post1.tar.gz",
    "platform": null,
    "description": "# splot\n\n[![unittests](https://github.com/pysal/splot/workflows/.github/workflows/unittests.yml/badge.svg)](https://github.com/pysal/splot/actions?query=workflow%3A.github%2Fworkflows%2Funittests.yml)\n[![codecov](https://codecov.io/gh/pysal/splot/branch/main/graph/badge.svg)](https://codecov.io/gh/pysal/splot)\n[![Documentation Status](https://readthedocs.org/projects/splot/badge/?version=latest)](https://splot.readthedocs.io/en/latest/?badge=latest)\n[![PyPI version](https://badge.fury.io/py/splot.svg)](https://badge.fury.io/py/splot)\n[![DOI](https://joss.theoj.org/papers/10.21105/joss.01882/status.svg)](https://doi.org/10.21105/joss.01882)\n[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.3258810.svg)](https://doi.org/10.5281/zenodo.3258810)\n\n**Visual analytics for spatial analysis with PySAL.**\n\n![Local Spatial Autocorrelation](figs/viz_local_autocorrelation.png)\n\n## What is splot?\n\n`splot` connects spatial analysis done in [`PySAL`](https://github.com/pysal) to different popular visualization toolkits like [`matplotlib`](https://matplotlib.org).\nThe `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.\n\nIf you are new to `splot` and `PySAL` you will best get started with our [documentation](https://splot.readthedocs.io/en/latest/) and the short introduction [video](https://youtu.be/kriQOJMycIQ?t=2403) of the package at the Scipy 2018 conference!\n\n## Installing splot\n\n### Installing dependencies\n\n`splot` is compatible with `Python` 3.8+ and depends on `geopandas` 0.4.0 or later and `matplotlib` 2.2.2 or later.\n\nsplot also uses\n\n* `numpy`\n* `seaborn`\n* `mapclassify`\n* `Ipywidgets`\n\nDepending on your spatial analysis workflow and the `PySAL` objects you would like to visualize, `splot` relies on:\n\n* PySAL 2.0\n\nor separate packages found in the `PySAL` stack:\n\n* esda\n* libpysal\n* spreg\n* giddy\n\n### Installing splot\n\nThere are two ways of accessing `splot`. First, `splot` is installed with the [PySAL 2.0](https://pysal.readthedocs.io/en/latest/installation.html) metapackage through:\n\n    $ pip install -U pysal\n\n    or\n\n    $ conda install -c conda-forge pysal\n\nSecond, `splot` can be installed as a separate package. If you are using Anaconda, install `splot` via the `conda` utility:\n\n    conda install -c conda-forge splot\n\nOtherwise you can install `splot` from `PyPI` with pip:\n\n    pip install splot\n\n## Usage\n\nUsage examples for different spatial statistical workflows are provided as [notebooks](https://github.com/pysal/splot/tree/main/notebooks):\n\n* [for creating value-by-alpha maps](https://github.com/pysal/splot/blob/main/notebooks/mapping_vba.ipynb)\n* [for assessing the relationship between neighboring polygons](https://github.com/pysal/splot/blob/main/notebooks/libpysal_non_planar_joins_viz.ipynb)\n* [for the visualization of space-time autocorrelation](https://github.com/pysal/splot/blob/main/notebooks/giddy_space_time.ipynb), also documented in [giddy](https://github.com/pysal/giddy/blob/main/notebooks/directional.ipynb)\n* for visualizing spatial autocorrelation of [univariate](https://github.com/pysal/splot/blob/main/notebooks/esda_morans_viz.ipynb) or [multivariate](https://github.com/pysal/splot/blob/main/notebooks/esda_moran_matrix_viz.ipynb) variable analysis\n\nYou can also check our [documentation](https://splot.readthedocs.io/en/latest/) for examples on how to use each function. A detailed report about the development, structure and usage of `splot` can be found [here](https://gist.github.com/slumnitz/a86ef4a5b48b1b5fac41e91cfd05fff2). More tutorials for the whole `PySAL` ecosystem can be found in our [notebooks book](http://pysal.org/notebooks/intro.html) project.\n\n## Contributing to splot\n\n`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.\n\nFeel free to check out our discussion spaces, add ideas and contributions:\n\n* [Idea collection](https://github.com/pysal/splot/issues/10) which PySAL objects to support and how new visualizations could look like\n* [Discussion](https://github.com/pysal/splot/issues/9) about the splot API\n* Ideas how to integrate [other popular visualization toolkits](https://github.com/pysal/splot/issues/22) like `Bokeh` or `Altair`\n\nIf 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](https://pypi.org/project/pep8/) and [pyflakes](https://pypi.org/project/pyflakes/) to clean our `.py` files. This will allow you to get used to working with [git](https://try.github.io) and generally allows you to familiarize yourself with the `splot` and `PySAL` code base.\n\nIf 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](https://github.com/pysal/splot/issues/9) can help you to decide how to best integrate your visualization prototype into `splot`.\n\nBeyond working on documentation and prototyping new visualizations, you can always write a bug report or feature request on [Github issues](https://github.com/pysal/splot/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](https://github.com/pysal/code_of_conduct/blob/master/README.md).\n\n## Road-map\n\nWe are planning on extending `splot`'s visualization toolkit in future. Functionality we plan to implement includes:\n\n* visualisations for [density methods](https://github.com/pysal/splot/issues/32) (mapping density estimations)\n* [cross-hatching fill styles](https://github.com/pysal/splot/issues/35) for maps (to allow choropleth visualizations without class intervals)\n* [legendgrams](https://github.com/pysal/splot/issues/34) (map legends that visualize the distribution of observations by color in a given map)\n\nIf you are interested in working on one of these or any other methods, check out the linked issues or get in touch!\n\n## Community support\n\n* [PySAL 2.0](http://pysal.org)\n* [Gitter chat splot](https://gitter.im/pysal/splot?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)\n\n\n",
    "bugtrack_url": null,
    "license": "3-Clause BSD",
    "summary": "Visual analytics for spatial analysis with PySAL.",
    "version": "1.1.5.post1",
    "project_urls": {
        "Homepage": "https://github.com/pysal/splot"
    },
    "split_keywords": [
        "spatial",
        "statistics",
        "visualization"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2b1d088c7ef6c29f9153da0df211b0cacb6885ae10effd3dbed205b877e69b14",
                "md5": "2b453a27558e2fe781309fddafd4a667",
                "sha256": "f732074c986bd7aa27dfef33171dc068e6acf84ab4de94c7e1adb3bba33cf4e3"
            },
            "downloads": -1,
            "filename": "splot-1.1.5.post1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "2b453a27558e2fe781309fddafd4a667",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 39227,
            "upload_time": "2022-04-13T21:13:31",
            "upload_time_iso_8601": "2022-04-13T21:13:31.092965Z",
            "url": "https://files.pythonhosted.org/packages/2b/1d/088c7ef6c29f9153da0df211b0cacb6885ae10effd3dbed205b877e69b14/splot-1.1.5.post1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "fb8c4e2e1ca9038dd45e57798010f37b66b6512691ded38bc136f8fb732b523b",
                "md5": "13f86c14c8aade5193033278245535f2",
                "sha256": "86a2bb0259996bc643a30535a280b3ccb902697dddb65c0de91b3ad4046f2e90"
            },
            "downloads": -1,
            "filename": "splot-1.1.5.post1.tar.gz",
            "has_sig": false,
            "md5_digest": "13f86c14c8aade5193033278245535f2",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 52499,
            "upload_time": "2022-04-13T21:13:32",
            "upload_time_iso_8601": "2022-04-13T21:13:32.187308Z",
            "url": "https://files.pythonhosted.org/packages/fb/8c/4e2e1ca9038dd45e57798010f37b66b6512691ded38bc136f8fb732b523b/splot-1.1.5.post1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-04-13 21:13:32",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "pysal",
    "github_project": "splot",
    "travis_ci": false,
    "coveralls": true,
    "github_actions": true,
    "requirements": [
        {
            "name": "esda",
            "specs": []
        },
        {
            "name": "geopandas",
            "specs": [
                [
                    ">=",
                    "0.9.0"
                ]
            ]
        },
        {
            "name": "giddy",
            "specs": []
        },
        {
            "name": "libpysal",
            "specs": []
        },
        {
            "name": "mapclassify",
            "specs": []
        },
        {
            "name": "matplotlib",
            "specs": [
                [
                    ">=",
                    "3.3.3"
                ]
            ]
        },
        {
            "name": "numpy",
            "specs": []
        },
        {
            "name": "packaging",
            "specs": []
        },
        {
            "name": "seaborn",
            "specs": [
                [
                    ">=",
                    "0.11.0"
                ]
            ]
        },
        {
            "name": "spreg",
            "specs": []
        }
    ],
    "lcname": "splot"
}
        
Elapsed time: 0.24334s