{ "info": { "author": "Thomas Robitaille", "author_email": "thomas.robitaille@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "About colormapize\n=================\n\n.. image:: https://img.shields.io/badge/Made%20at-%23AstroHackWeek-8063d5.svg?style=flat\n\nAbout\n-----\n\nThis is a small package to easily generate colormaps from images which was\nbuilt as a fun hack and should *not* be used to generate colormaps for\nserious visualization work since there is no guarantee that the colormaps\nmade will be e.g. perceptually uniform.\n\nInstalling\n----------\n\nTo install::\n\n pip install colormapize\n\nUsing\n-----\n\nTo use, run::\n\n colormapize your_image.jpg colormap_name\n\nwhere ``colormap_name`` is what you want to call your colormap, for example::\n\n colormapize your_image.jpg kittens\n\nThis should open a Matplotlib window. Click once to define the start of a path\nand click again to define the end of the path. You can then use the + and - keys\nto add more samples along the path. If you are not happy with the path, just\nclick twice again to define a new path. Once you are happy with it, press\n'enter' or 'c' and you will see a preview of the colormap on the right of the\nimage, and the colormap will also be saved to e.g.``cmap_kittens.py``. You can\ncontinue to redefine the path until you are happy with it, and the file will be\noverwritten every time you press 'enter' or 'c'. Close the window once you are\ndone.\n\nTo use, make sure the colormap file (e.g. ``cmap_kittens.py``) is in the same\ndirectory as the directory where you want to make plots, and you can then use it\nas follows in other scripts::\n\n import colormap_kittens\n\n ...\n\n plt.imshow(mydata, cmap='kittens')\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/astrofrog/colormapize", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "colormapize", "package_url": "https://pypi.org/project/colormapize/", "platform": "", "project_url": "https://pypi.org/project/colormapize/", "project_urls": { "Homepage": "https://github.com/astrofrog/colormapize" }, "release_url": "https://pypi.org/project/colormapize/0.2/", "requires_dist": [ "click", "matplotlib", "pillow" ], "requires_python": "", "summary": "Generate a colormap from an image", "version": "0.2" }, "last_serial": 5760284, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "16fd794ad8ed6ee454f6c3f6dbebbbd8", "sha256": "2f22756f899f528f82b872ed98715384b47bafb9da77bee86acbe14fbb2f3f9f" }, "downloads": -1, "filename": "colormapize-0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "16fd794ad8ed6ee454f6c3f6dbebbbd8", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4519, "upload_time": "2019-08-30T10:55:38", "url": "https://files.pythonhosted.org/packages/95/92/2f56645d763d0df248262e35d7936b40f2dc4708a6986e391009c4d94dc3/colormapize-0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8d5b6c5e572ccdbbc85324f05ffcd2b4", "sha256": "49b7e7017b671a0bf1e69c483973461a192aeedc7e2599f9e737a66531985ff5" }, "downloads": -1, "filename": "colormapize-0.1.tar.gz", "has_sig": false, "md5_digest": "8d5b6c5e572ccdbbc85324f05ffcd2b4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3718, "upload_time": "2019-08-30T10:55:40", "url": "https://files.pythonhosted.org/packages/ae/a8/fd8aaa00447855ac2838f912d2f71fabaf3f002cdfa6a465664d7e25b3b2/colormapize-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "575472dd813f5885b4eb1ae73c72256b", "sha256": "228f8327c17e028b3cb8100853c951145d7c68a38e66c17fc24aeae77d7ad28e" }, "downloads": -1, "filename": "colormapize-0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "575472dd813f5885b4eb1ae73c72256b", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4605, "upload_time": "2019-08-30T13:14:18", "url": "https://files.pythonhosted.org/packages/13/fc/69a6642e5edbcff1541595801332b5a0465671175cf611c36dc69bd47003/colormapize-0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "02b1490344787629a0aa9b020451b55f", "sha256": "eff46864f28c6a4526ba927edd7c03cfd8e6a573270521e6ea653322f0eab57b" }, "downloads": -1, "filename": "colormapize-0.2.tar.gz", "has_sig": false, "md5_digest": "02b1490344787629a0aa9b020451b55f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3802, "upload_time": "2019-08-30T13:14:19", "url": "https://files.pythonhosted.org/packages/6a/71/a73535546c5f56be5e9f108a71554e4525bfdfa76c8cf2695711be6121a5/colormapize-0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "575472dd813f5885b4eb1ae73c72256b", "sha256": "228f8327c17e028b3cb8100853c951145d7c68a38e66c17fc24aeae77d7ad28e" }, "downloads": -1, "filename": "colormapize-0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "575472dd813f5885b4eb1ae73c72256b", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4605, "upload_time": "2019-08-30T13:14:18", "url": "https://files.pythonhosted.org/packages/13/fc/69a6642e5edbcff1541595801332b5a0465671175cf611c36dc69bd47003/colormapize-0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "02b1490344787629a0aa9b020451b55f", "sha256": "eff46864f28c6a4526ba927edd7c03cfd8e6a573270521e6ea653322f0eab57b" }, "downloads": -1, "filename": "colormapize-0.2.tar.gz", "has_sig": false, "md5_digest": "02b1490344787629a0aa9b020451b55f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3802, "upload_time": "2019-08-30T13:14:19", "url": "https://files.pythonhosted.org/packages/6a/71/a73535546c5f56be5e9f108a71554e4525bfdfa76c8cf2695711be6121a5/colormapize-0.2.tar.gz" } ] }