Name | colormap JSON |
Version |
1.2.0
JSON |
| download |
home_page | None |
Summary | Commn utilities to ease development of Python packages |
upload_time | 2024-10-17 11:40:40 |
maintainer | None |
docs_url | https://pythonhosted.org/colormap/ |
author | Thomas Cokelaer |
requires_python | <4.0,>=3.8 |
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=main
:target: https://github.com/cokelaer/colormap/actions/workflows/ci.yml
.. image:: https://coveralls.io/repos/cokelaer/colormap/badge.png?branch=main
:target: https://coveralls.io/r/cokelaer/colormap?branch=main
: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/main/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.8",
"maintainer_email": null,
"keywords": "config, decorators, development",
"author": "Thomas Cokelaer",
"author_email": "thomas.cokelaer@pasteur.fr",
"download_url": "https://files.pythonhosted.org/packages/84/77/4e5ecfd8236d209021875354fd459e19c51d4a62571dcdb93091c930ce7a/colormap-1.2.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=main\n :target: https://github.com/cokelaer/colormap/actions/workflows/ci.yml\n\n.. image:: https://coveralls.io/repos/cokelaer/colormap/badge.png?branch=main\n :target: https://coveralls.io/r/cokelaer/colormap?branch=main\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/main/notebooks\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\n",
"bugtrack_url": null,
"license": "BSD-3-Clause",
"summary": "Commn utilities to ease development of Python packages",
"version": "1.2.0",
"project_urls": null,
"split_keywords": [
"config",
" decorators",
" development"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "5cf605f9ad3cda3a59392354c01e28f82af8c491076317d8d1005ccf68ce6c52",
"md5": "ff6b90b2988516867b437d4b4d8592ac",
"sha256": "6e33d06cdf64371e43582f48f9640cab32440e57ad82b31255375c66c8f8e7ad"
},
"downloads": -1,
"filename": "colormap-1.2.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "ff6b90b2988516867b437d4b4d8592ac",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.8",
"size": 16138,
"upload_time": "2024-10-17T11:40:39",
"upload_time_iso_8601": "2024-10-17T11:40:39.142789Z",
"url": "https://files.pythonhosted.org/packages/5c/f6/05f9ad3cda3a59392354c01e28f82af8c491076317d8d1005ccf68ce6c52/colormap-1.2.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "84774e5ecfd8236d209021875354fd459e19c51d4a62571dcdb93091c930ce7a",
"md5": "c348cd25f8e7fb0529bb4d8215bb512d",
"sha256": "b6a9ae93dff67c44c1715680c8c00a9de05a8e9c556b6219d07fa8418414e7fa"
},
"downloads": -1,
"filename": "colormap-1.2.0.tar.gz",
"has_sig": false,
"md5_digest": "c348cd25f8e7fb0529bb4d8215bb512d",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.8",
"size": 16093,
"upload_time": "2024-10-17T11:40:40",
"upload_time_iso_8601": "2024-10-17T11:40:40.768928Z",
"url": "https://files.pythonhosted.org/packages/84/77/4e5ecfd8236d209021875354fd459e19c51d4a62571dcdb93091c930ce7a/colormap-1.2.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-10-17 11:40:40",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "colormap"
}