{ "info": { "author": "Dani Arribas-Bel, Levi John Wolf", "author_email": "daniel.arribas.bel@gmail.com, levi.john.wolf@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: BSD License", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: Implementation :: CPython" ], "description": "Legendgrams\n========================\n\nThis is a small bit of unittested, reproducible code to provide legendgrams.\nLegendgrams are map legends that visualize the distribution of observations by color in a given map:\n\n.. image:: https://raw.githubusercontent.com/pysal/legendgram/master/figs/brooklyn.png\n :width: 40%\n :height: 200px\n :scale: 50%\n :alt: Silhouettes in Brooklyn\n\nLegendgrams are distributed by PySAL, an open source cross-platform library of spatial analysis functions\nwritten in Python. It is intended to support the development of high level\napplications for spatial analysis.\n\nTo use legendgrams, simply install the package using pip:\n\n.. code-block:: bash\n\n $ pip install legendgram\n\nThen, apply the function to the figure/axis you want to have a legendgram:\n\n.. code-block:: python\n\n >>> import pysal as ps, geopandas as gpd, matplotlib.pyplot as plt\n >>> from legendgram import legendgram\n >>> data = gpd.read_file(ps.examples.get_path('south.shp'))\n >>> data.crs = {'init': 'epgs:4269'}\n >>> data.to_crs(epsg=5070)\n >>> f,ax = plt.subplots()\n >>> data.plot('DV80', k=10, ax=ax, scheme='Quantiles')\n >>> bins = ps.Quantiles(data['DV80'].values, k=10).bins\n >>> from legendgram import legendgram\n >>> import palettable.matplotlib as palmpl\n >>> legendgram(f,ax,data['DV80'],bins,pal=palmpl.Viridis_10,\n legend_size=(.5,.2), # legend size in fractions of the axis\n loc = 'upper left' # matplotlib-style legend locations\n clip = (2,10) # clip the displayed range of the histogram\n )\n\n.. image:: https://raw.githubusercontent.com/pysal/legendgram/master/figs/example.png\n :width: 100%\n :alt: Example legendgram map in the US south\n\nAn example notebook is provided_ as well.\n\n.. _provided: https://github.com/pysal/legendgram/blob/master/examples/examples.ipynb\n\nLicense\n-------\n\nThis is licensed under the 3-Clause BSD license. \nRefer to the license file for more details. \n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/pysal/legendgram", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "legendgram", "package_url": "https://pypi.org/project/legendgram/", "platform": "", "project_url": "https://pypi.org/project/legendgram/", "project_urls": { "Homepage": "https://github.com/pysal/legendgram" }, "release_url": "https://pypi.org/project/legendgram/0.0.3/", "requires_dist": [ "matplotlib", "numpy", "palettable" ], "requires_python": "", "summary": "Legendgrams are map legends that visualize the distribution of observations by color in a given map", "version": "0.0.3" }, "last_serial": 3853595, "releases": { "0.0.2": [ { "comment_text": "", "digests": { "md5": "63d4feedf5ce659c51b435c2f90380f6", "sha256": "1fd4c316ef8cf19157f11d43129f1d7d594c7dbf1ae490ec4cc3b0c5ec21e278" }, "downloads": -1, "filename": "legendgram-0.0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "63d4feedf5ce659c51b435c2f90380f6", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7454, "upload_time": "2017-11-09T16:29:16", "url": "https://files.pythonhosted.org/packages/1a/68/bcf8cd53f0ae6d9532206c4cb6546f02d11f2a36350c5a9d45880a6127f9/legendgram-0.0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e83b765b678683fafde97e5b06b396c6", "sha256": "96e21fa62e45b97b984a5a9c18b19b3e421913bc310c8fa05442d03a54404e4e" }, "downloads": -1, "filename": "legendgram-0.0.2.tar.gz", "has_sig": false, "md5_digest": "e83b765b678683fafde97e5b06b396c6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 683603, "upload_time": "2017-11-09T16:29:18", "url": "https://files.pythonhosted.org/packages/e8/a5/9fc6be1479cb8be54b33488de91f44eb54976cbc978ceb9c07c968fd831b/legendgram-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "4160ba6ddbf0de0777e899cf4a66415e", "sha256": "71932cabca43434c3667e4f0c66dcde139ae5dfcdff3863845980b6f1278b711" }, "downloads": -1, "filename": "legendgram-0.0.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "4160ba6ddbf0de0777e899cf4a66415e", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7711, "upload_time": "2018-05-11T09:46:09", "url": "https://files.pythonhosted.org/packages/90/29/8a03d693d26f6fc4476953c7a639f978836b47b49635447b80201b522c58/legendgram-0.0.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8cf2d1b71a31d7d20f54ac987ad1589c", "sha256": "1345a2191323d38b210470177435c9292a21e5dd2449f327179e29413772a9fa" }, "downloads": -1, "filename": "legendgram-0.0.3.tar.gz", "has_sig": false, "md5_digest": "8cf2d1b71a31d7d20f54ac987ad1589c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 683843, "upload_time": "2018-05-11T09:46:11", "url": "https://files.pythonhosted.org/packages/56/1e/28596cbe4bb73727ba59d1cf63f2ad69799a308840c6a3fd4d214111e26c/legendgram-0.0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "4160ba6ddbf0de0777e899cf4a66415e", "sha256": "71932cabca43434c3667e4f0c66dcde139ae5dfcdff3863845980b6f1278b711" }, "downloads": -1, "filename": "legendgram-0.0.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "4160ba6ddbf0de0777e899cf4a66415e", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7711, "upload_time": "2018-05-11T09:46:09", "url": "https://files.pythonhosted.org/packages/90/29/8a03d693d26f6fc4476953c7a639f978836b47b49635447b80201b522c58/legendgram-0.0.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8cf2d1b71a31d7d20f54ac987ad1589c", "sha256": "1345a2191323d38b210470177435c9292a21e5dd2449f327179e29413772a9fa" }, "downloads": -1, "filename": "legendgram-0.0.3.tar.gz", "has_sig": false, "md5_digest": "8cf2d1b71a31d7d20f54ac987ad1589c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 683843, "upload_time": "2018-05-11T09:46:11", "url": "https://files.pythonhosted.org/packages/56/1e/28596cbe4bb73727ba59d1cf63f2ad69799a308840c6a3fd4d214111e26c/legendgram-0.0.3.tar.gz" } ] }