Name | colormap JSON |
Version |
1.1.0
JSON |
| download |
home_page | None |
Summary | Commn utilities to ease development of Python packages |
upload_time | 2024-04-28 18:34:28 |
maintainer | None |
docs_url | https://pythonhosted.org/colormap/ |
author | Thomas Cokelaer |
requires_python | <4.0,>=3.9 |
license | BSD-3-Clause |
keywords |
config
decorators
development
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
#############################
COLORMAP documentation
#############################
Please see : http://colormap.readthedocs.io/ for an up-to-date documentation.
.. image:: https://badge.fury.io/py/colormap.svg
:target: https://pypi.python.org/pypi/colormap
.. image:: https://github.com/cokelaer/colormap/actions/workflows/ci.yml/badge.svg?branch=master
:target: https://github.com/cokelaer/colormap/actions/workflows/ci.yml
.. image:: https://coveralls.io/repos/cokelaer/colormap/badge.png?branch=master
:target: https://coveralls.io/r/cokelaer/colormap?branch=master
:version: Python 3.8, 3.9, 3.10, 3.11, 3.12
:contributions: Please join https://github.com/cokelaer/colormap
:issues: Please use https://github.com/cokelaer/colormap/issues
:notebook: Please see https://github.com/cokelaer/colormap/tree/master/notebooks
What is it ?
################
**colormap** package provides simple utilities to convert colors between
RGB, HEX, HLS, HUV and a class to easily build colormaps for matplotlib. All
matplotlib colormaps and some R colormaps are available altogether. The
plot_colormap method (see below) is handy to quickly pick up a colormaps and
the test_colormap is useful to see test a new colormap.
Installation
###################
::
pip install colormap
Example
##########
* Create your own colormap from red to green colors with intermediate color as
whitish (diverging map from red to green)::
c = Colormap()
mycmap = c.cmap( {'red':[1,1,0], 'green':[0,1,.39], 'blue':[0,1,0]})
cmap = c.test_colormap(mycmap)
* Even simpler if the colormap is linear::
c = Colormap()
mycmap = c.cmap_linear('red', 'white', 'green(w3c)')
cmap = c.test_colormap(mycmap)
.. image:: https://colormap.readthedocs.io/en/latest/_images/quickstart-6.png
:width: 50%
:align: center
* check out the available colormaps::
c = Colormap()
c.plot_colormap('diverging')
.. image:: https://colormap.readthedocs.io/en/latest/_images/quickstart-4.png
:width: 50%
:align: center
See online documentation for details: http://colormap.readthedocs.io/
changelog
#########
========= ================================================================================
Version Description
========= ================================================================================
1.1.0 * switch to pyproject. remove easydev dependency. compat for python 3.11 and
3.12
1.0.6 * Fix a matplotlib deprecation
* Fix RTD documentation
1.0.5 * remove Python3.6 and added Python3.10 to CI action
* Fix issue in setup reported in https://github.com/cokelaer/colormap/pull/14
* add requirements in MANIFEST
* applied black on all files
========= ================================================================================
Raw data
{
"_id": null,
"home_page": null,
"name": "colormap",
"maintainer": null,
"docs_url": "https://pythonhosted.org/colormap/",
"requires_python": "<4.0,>=3.9",
"maintainer_email": null,
"keywords": "config, decorators, development",
"author": "Thomas Cokelaer",
"author_email": "thomas.cokelaer@pasteur.fr",
"download_url": "https://files.pythonhosted.org/packages/ac/fe/e90fe707e7cbc420fb0e38fd18a08f664028554e84284d717d7c9a12f988/colormap-1.1.0.tar.gz",
"platform": null,
"description": "#############################\nCOLORMAP documentation\n#############################\n\n\nPlease see : http://colormap.readthedocs.io/ for an up-to-date documentation.\n\n.. image:: https://badge.fury.io/py/colormap.svg\n :target: https://pypi.python.org/pypi/colormap\n\n.. image:: https://github.com/cokelaer/colormap/actions/workflows/ci.yml/badge.svg?branch=master\n :target: https://github.com/cokelaer/colormap/actions/workflows/ci.yml\n\n.. image:: https://coveralls.io/repos/cokelaer/colormap/badge.png?branch=master\n :target: https://coveralls.io/r/cokelaer/colormap?branch=master\n\n\n:version: Python 3.8, 3.9, 3.10, 3.11, 3.12\n:contributions: Please join https://github.com/cokelaer/colormap\n:issues: Please use https://github.com/cokelaer/colormap/issues\n:notebook: Please see https://github.com/cokelaer/colormap/tree/master/notebooks\n\n\n\nWhat is it ?\n################\n\n**colormap** package provides simple utilities to convert colors between\nRGB, HEX, HLS, HUV and a class to easily build colormaps for matplotlib. All\nmatplotlib colormaps and some R colormaps are available altogether. The\nplot_colormap method (see below) is handy to quickly pick up a colormaps and\nthe test_colormap is useful to see test a new colormap.\n\n\nInstallation\n###################\n\n::\n\n pip install colormap\n\nExample\n##########\n\n* Create your own colormap from red to green colors with intermediate color as\n whitish (diverging map from red to green)::\n\n c = Colormap()\n mycmap = c.cmap( {'red':[1,1,0], 'green':[0,1,.39], 'blue':[0,1,0]})\n cmap = c.test_colormap(mycmap)\n\n* Even simpler if the colormap is linear::\n\n c = Colormap()\n mycmap = c.cmap_linear('red', 'white', 'green(w3c)')\n cmap = c.test_colormap(mycmap)\n\n.. image:: https://colormap.readthedocs.io/en/latest/_images/quickstart-6.png\n :width: 50%\n :align: center\n\n* check out the available colormaps::\n\n c = Colormap()\n c.plot_colormap('diverging')\n\n.. image:: https://colormap.readthedocs.io/en/latest/_images/quickstart-4.png\n :width: 50%\n :align: center\n\nSee online documentation for details: http://colormap.readthedocs.io/\n\nchangelog\n#########\n\n========= ================================================================================\nVersion Description\n========= ================================================================================\n1.1.0 * switch to pyproject. remove easydev dependency. compat for python 3.11 and\n 3.12\n1.0.6 * Fix a matplotlib deprecation\n * Fix RTD documentation\n1.0.5 * remove Python3.6 and added Python3.10 to CI action\n * Fix issue in setup reported in https://github.com/cokelaer/colormap/pull/14\n * add requirements in MANIFEST\n * applied black on all files\n========= ================================================================================\n",
"bugtrack_url": null,
"license": "BSD-3-Clause",
"summary": "Commn utilities to ease development of Python packages",
"version": "1.1.0",
"project_urls": null,
"split_keywords": [
"config",
" decorators",
" development"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "209bd09f7ef78f770692d83b9c3da1cc2625744a1944cf2dc0694c25953e1112",
"md5": "12fe6630db5ec3158a19e6fcffeeb095",
"sha256": "aa43646b38a4f6f86feb47fa9bdbbba5af944af1507e209ea78b273403867ca6"
},
"downloads": -1,
"filename": "colormap-1.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "12fe6630db5ec3158a19e6fcffeeb095",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.9",
"size": 16082,
"upload_time": "2024-04-28T18:34:25",
"upload_time_iso_8601": "2024-04-28T18:34:25.877814Z",
"url": "https://files.pythonhosted.org/packages/20/9b/d09f7ef78f770692d83b9c3da1cc2625744a1944cf2dc0694c25953e1112/colormap-1.1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "acfee90fe707e7cbc420fb0e38fd18a08f664028554e84284d717d7c9a12f988",
"md5": "514cb52bc3a772bec4c1d8f86a3b1ff3",
"sha256": "2eed844c1ea93b2ff3377269a46fa3323f5d6d2cc33293e8aea0c1547732151b"
},
"downloads": -1,
"filename": "colormap-1.1.0.tar.gz",
"has_sig": false,
"md5_digest": "514cb52bc3a772bec4c1d8f86a3b1ff3",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.9",
"size": 15938,
"upload_time": "2024-04-28T18:34:28",
"upload_time_iso_8601": "2024-04-28T18:34:28.047326Z",
"url": "https://files.pythonhosted.org/packages/ac/fe/e90fe707e7cbc420fb0e38fd18a08f664028554e84284d717d7c9a12f988/colormap-1.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-04-28 18:34:28",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "colormap"
}