{ "info": { "author": "Chris L. Barnes", "author_email": "", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "# mpl_colors\n\nA python 3.6+ library extending matplotlib's color handling.\n\n## Named color enums\n\nMakes matplotlib's [named colors](https://matplotlib.org/examples/color/named_colors.html) more discoverable.\n\nDefines enums for each of matplotlib's sets of named colours (base, Tableau, xkcd and CSS4), and one which combines all of them (where Tableau and xkcd names are prepended with `TAB_` and `XKCD_` respectively, like matplotlib).\nColor names are in `SCREAMING_SNAKE_CASE`, as recommended.\nNames originally containing a slash (`/`) replace it with the `_SLASH_` (necessary to prevent collisions).\n\nInstances of these enums are also instances of a named tuple with members `r`, `g`, and `b` (all floats between 0 and 1).\nThey also support a number of methods for conversion into `colour.Color` objects, and RGBA, HSL, HSV, and YIQ tuples.\nAlso, length-6 hex strings (prepended with `#`) and `colour`'s \"web\" format (whichever is shortest of W3C named color, length-3 hex, or length-6 hex, preferring named as a tie-break).\n\nThe enums are automatically generated directly from `matplotlib.colors` using the included `make_colors.py`.\nLike matplotlib, they support both spellings of the word \"grey\"/\"gray\".\n\n## LabelColormap\n\n`matplotlib.colors.Colormap` subclass which deterministically converts integers into a random RGB tuple.\n\n```python\nfrom matplotlib import pyplot as plt\nimport numpy as np\n\nfrom mpl_colors import LabelColorMap\n\nimg = np.random.randint(0, 255, (20, 20), dtype=np.uint8)\nmasked = np.ma.masked_where(img < 100, img)\n\nfig, ax = plt.subplots()\nax.imshow(masked, cmap=LabelColorMap(), interpolation='nearest')\nfig.show()\n```\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/clbarnes/mpl_colors", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "mpl-colors", "package_url": "https://pypi.org/project/mpl-colors/", "platform": "", "project_url": "https://pypi.org/project/mpl-colors/", "project_urls": { "Homepage": "https://github.com/clbarnes/mpl_colors" }, "release_url": "https://pypi.org/project/mpl-colors/0.2.0/", "requires_dist": [ "colour", "numpy", "matplotlib" ], "requires_python": ">=3.6", "summary": "Enums representing named colors available in matplotlib", "version": "0.2.0" }, "last_serial": 5514060, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "cc4dbe7bb033dd98eb99f3d72da9e0b1", "sha256": "141a6e2531a5660262b70bf06a3e851beb6e7445f9da8443b6d4bad5fc1cdb28" }, "downloads": -1, "filename": "mpl_colors-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "cc4dbe7bb033dd98eb99f3d72da9e0b1", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 30565, "upload_time": "2019-06-27T19:44:41", "url": "https://files.pythonhosted.org/packages/2d/7f/e6986ade7289db864e5bb0b5fbab34d0e570815545631c9526d201c6018d/mpl_colors-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b2b2235e5a4ef69e1798191e2c20082a", "sha256": "62d246477f742642c6bad0506b6f7150508fdb458be49284c726e55bb48178fa" }, "downloads": -1, "filename": "mpl_colors-0.1.0.tar.gz", "has_sig": false, "md5_digest": "b2b2235e5a4ef69e1798191e2c20082a", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 30138, "upload_time": "2019-06-27T19:44:43", "url": "https://files.pythonhosted.org/packages/76/d0/db5389c3fd917ec291fafeba2331e016f7409b4a74badbfbd940ed5ef4fb/mpl_colors-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "18e17a6a5220db7cff6145a1299025c3", "sha256": "ae037c0b4261dd109ce99ce1e64e129f38486699bc8d54a56ef2617c943ac6d3" }, "downloads": -1, "filename": "mpl_colors-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "18e17a6a5220db7cff6145a1299025c3", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 31847, "upload_time": "2019-07-10T21:31:16", "url": "https://files.pythonhosted.org/packages/bd/95/790eea0ac0aa20f5a358246bec7cd78187a9eaee2725f7333ad4061994f4/mpl_colors-0.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b7810feb7900d6916b50a8c7187db904", "sha256": "82ce381253f2b4d0aaf1dbb0d47a22aa61bbcae831df36059798f0d6ccf08cb9" }, "downloads": -1, "filename": "mpl_colors-0.2.0.tar.gz", "has_sig": false, "md5_digest": "b7810feb7900d6916b50a8c7187db904", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 31647, "upload_time": "2019-07-10T21:31:17", "url": "https://files.pythonhosted.org/packages/5b/86/6ac88db35bf2f54576fc9564eaa6d1ce6d1f3f49a3f7069ef9e2beb2b2a5/mpl_colors-0.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "18e17a6a5220db7cff6145a1299025c3", "sha256": "ae037c0b4261dd109ce99ce1e64e129f38486699bc8d54a56ef2617c943ac6d3" }, "downloads": -1, "filename": "mpl_colors-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "18e17a6a5220db7cff6145a1299025c3", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 31847, "upload_time": "2019-07-10T21:31:16", "url": "https://files.pythonhosted.org/packages/bd/95/790eea0ac0aa20f5a358246bec7cd78187a9eaee2725f7333ad4061994f4/mpl_colors-0.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b7810feb7900d6916b50a8c7187db904", "sha256": "82ce381253f2b4d0aaf1dbb0d47a22aa61bbcae831df36059798f0d6ccf08cb9" }, "downloads": -1, "filename": "mpl_colors-0.2.0.tar.gz", "has_sig": false, "md5_digest": "b7810feb7900d6916b50a8c7187db904", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 31647, "upload_time": "2019-07-10T21:31:17", "url": "https://files.pythonhosted.org/packages/5b/86/6ac88db35bf2f54576fc9564eaa6d1ce6d1f3f49a3f7069ef9e2beb2b2a5/mpl_colors-0.2.0.tar.gz" } ] }