colourmap


Namecolourmap JSON
Version 1.1.19 PyPI version JSON
download
home_pagehttps://erdogant.github.io/colourmap
SummaryPython package colourmap generates an N unique colors from the specified input colormap.
upload_time2025-01-11 12:50:54
maintainerNone
docs_urlNone
authorErdogan Taskesen
requires_python>=3
licenseNone
keywords
VCS
bugtrack_url
requirements matplotlib numpy
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # colourmap

[![Python](https://img.shields.io/pypi/pyversions/colourmap)](https://img.shields.io/pypi/pyversions/colourmap)
[![PyPI Version](https://img.shields.io/pypi/v/colourmap)](https://pypi.org/project/colourmap/)
[![License](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/erdogant/colourmap/blob/master/LICENSE)
[![Github Forks](https://img.shields.io/github/forks/erdogant/colourmap.svg)](https://github.com/erdogant/colourmap/network)
[![GitHub Open Issues](https://img.shields.io/github/issues/erdogant/colourmap.svg)](https://github.com/erdogant/colourmap/issues)
[![Project Status](http://www.repostatus.org/badges/latest/active.svg)](http://www.repostatus.org/#active)
[![Downloads](https://static.pepy.tech/badge/colourmap/month)](https://pepy.tech/project/colourmap)
[![Downloads](https://pepy.tech/badge/colourmap)](https://pepy.tech/project/colourmap)
[![Sphinx](https://img.shields.io/badge/Sphinx-Docs-Green)](https://erdogant.github.io/colourmap/)
<!---[![BuyMeCoffee](https://img.shields.io/badge/buymea-coffee-yellow.svg)](https://www.buymeacoffee.com/erdogant)-->
<!---[![Coffee](https://img.shields.io/badge/coffee-black-grey.svg)](https://erdogant.github.io/donate/?currency=USD&amount=5)-->

*`` Colourmap`` generates an unique lit of RGB and HEX colors for the specified input list.


# 
**⭐️ Star this repo if you like it ⭐️**
# 


### [Documentation pages](https://erdogant.github.io/colourmap/)

On the [documentation pages](https://erdogant.github.io/colourmap/) you can find more information about ``colourmap`` with examples. 

# 

##### Install colourmap from PyPI
```bash
pip install colourmap     # normal install
pip install -U colourmap  # update if needed
```


### Import colourmap package
```python
from colourmap import colourmap
```

<hr>

#### Quick example

Use the documentation pages for more detailed usage. Some of the most used functionalities are linked below.


```python

from colourmap import colourmap

# Create N colors
c = colourmap.generate(10)

# From list
c_rgb, c_dict = colourmap.fromlist([1,1,2,2,3,1,2,3])

# to HEX
c_hex = colourmap.rgb2hex(c_rgb)

```

#

#### [Example: Generate N unique colors from a specific colormap](https://erdogant.github.io/colourmap/pages/html/Examples.html#)

#

#### [Example: Generate unique colors based on input labels](https://erdogant.github.io/colourmap/pages/html/Examples.html#create-color-based-on-input-labels)

#

#### [Example: Create unique colors based on seaborn or matplotlib](https://erdogant.github.io/colourmap/pages/html/Examples.html#color-generated-by-seaborn-and-matplotlib)

#

#### [Example: Conversion RGB to HEX](https://erdogant.github.io/colourmap/pages/html/Examples.html#convert-rgb-to-hex)

#

#### [Example: Conversion HEX to RGB](https://erdogant.github.io/colourmap/pages/html/Examples.html#convert-rgb-to-hex)

#

#### [Example: Create a linear gradient between colors](https://erdogant.github.io/colourmap/pages/html/Examples.html#linear-gradient-between-two-colors)

<hr>

### Maintainer
* Erdogan Taskesen, github: [erdogant](https://github.com/erdogant)
* Contributions are welcome.
* For citations, please use the citation at the right side panel.
* If you wish to buy me a <a href="https://www.buymeacoffee.com/erdogant">Coffee</a> for this work, it is very appreciated :)

            

Raw data

            {
    "_id": null,
    "home_page": "https://erdogant.github.io/colourmap",
    "name": "colourmap",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3",
    "maintainer_email": null,
    "keywords": null,
    "author": "Erdogan Taskesen",
    "author_email": "erdogant@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/36/60/d58936cecc45d2b3680d4f2f655e41903cad76448b07cd4660bc4a44597d/colourmap-1.1.19.tar.gz",
    "platform": null,
    "description": "# colourmap\r\n\r\n[![Python](https://img.shields.io/pypi/pyversions/colourmap)](https://img.shields.io/pypi/pyversions/colourmap)\r\n[![PyPI Version](https://img.shields.io/pypi/v/colourmap)](https://pypi.org/project/colourmap/)\r\n[![License](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/erdogant/colourmap/blob/master/LICENSE)\r\n[![Github Forks](https://img.shields.io/github/forks/erdogant/colourmap.svg)](https://github.com/erdogant/colourmap/network)\r\n[![GitHub Open Issues](https://img.shields.io/github/issues/erdogant/colourmap.svg)](https://github.com/erdogant/colourmap/issues)\r\n[![Project Status](http://www.repostatus.org/badges/latest/active.svg)](http://www.repostatus.org/#active)\r\n[![Downloads](https://static.pepy.tech/badge/colourmap/month)](https://pepy.tech/project/colourmap)\r\n[![Downloads](https://pepy.tech/badge/colourmap)](https://pepy.tech/project/colourmap)\r\n[![Sphinx](https://img.shields.io/badge/Sphinx-Docs-Green)](https://erdogant.github.io/colourmap/)\r\n<!---[![BuyMeCoffee](https://img.shields.io/badge/buymea-coffee-yellow.svg)](https://www.buymeacoffee.com/erdogant)-->\r\n<!---[![Coffee](https://img.shields.io/badge/coffee-black-grey.svg)](https://erdogant.github.io/donate/?currency=USD&amount=5)-->\r\n\r\n*`` Colourmap`` generates an unique lit of RGB and HEX colors for the specified input list.\r\n\r\n\r\n# \r\n**\u2b50\ufe0f Star this repo if you like it \u2b50\ufe0f**\r\n# \r\n\r\n\r\n### [Documentation pages](https://erdogant.github.io/colourmap/)\r\n\r\nOn the [documentation pages](https://erdogant.github.io/colourmap/) you can find more information about ``colourmap`` with examples. \r\n\r\n# \r\n\r\n##### Install colourmap from PyPI\r\n```bash\r\npip install colourmap     # normal install\r\npip install -U colourmap  # update if needed\r\n```\r\n\r\n\r\n### Import colourmap package\r\n```python\r\nfrom colourmap import colourmap\r\n```\r\n\r\n<hr>\r\n\r\n#### Quick example\r\n\r\nUse the documentation pages for more detailed usage. Some of the most used functionalities are linked below.\r\n\r\n\r\n```python\r\n\r\nfrom colourmap import colourmap\r\n\r\n# Create N colors\r\nc = colourmap.generate(10)\r\n\r\n# From list\r\nc_rgb, c_dict = colourmap.fromlist([1,1,2,2,3,1,2,3])\r\n\r\n# to HEX\r\nc_hex = colourmap.rgb2hex(c_rgb)\r\n\r\n```\r\n\r\n#\r\n\r\n#### [Example: Generate N unique colors from a specific colormap](https://erdogant.github.io/colourmap/pages/html/Examples.html#)\r\n\r\n#\r\n\r\n#### [Example: Generate unique colors based on input labels](https://erdogant.github.io/colourmap/pages/html/Examples.html#create-color-based-on-input-labels)\r\n\r\n#\r\n\r\n#### [Example: Create unique colors based on seaborn or matplotlib](https://erdogant.github.io/colourmap/pages/html/Examples.html#color-generated-by-seaborn-and-matplotlib)\r\n\r\n#\r\n\r\n#### [Example: Conversion RGB to HEX](https://erdogant.github.io/colourmap/pages/html/Examples.html#convert-rgb-to-hex)\r\n\r\n#\r\n\r\n#### [Example: Conversion HEX to RGB](https://erdogant.github.io/colourmap/pages/html/Examples.html#convert-rgb-to-hex)\r\n\r\n#\r\n\r\n#### [Example: Create a linear gradient between colors](https://erdogant.github.io/colourmap/pages/html/Examples.html#linear-gradient-between-two-colors)\r\n\r\n<hr>\r\n\r\n### Maintainer\r\n* Erdogan Taskesen, github: [erdogant](https://github.com/erdogant)\r\n* Contributions are welcome.\r\n* For citations, please use the citation at the right side panel.\r\n* If you wish to buy me a <a href=\"https://www.buymeacoffee.com/erdogant\">Coffee</a> for this work, it is very appreciated :)\r\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Python package colourmap generates an N unique colors from the specified input colormap.",
    "version": "1.1.19",
    "project_urls": {
        "Download": "https://github.com/erdogant/colourmap/archive/1.1.19.tar.gz",
        "Homepage": "https://erdogant.github.io/colourmap"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a2a3a6467450929daf8c42f3a88c13145ba7160651e0bd14586ed972d8482f4d",
                "md5": "d1c2e678d19e71d1d408b7f88bf338d7",
                "sha256": "ac61d15c22af9eda7bb987e68631ad7762f07f88a616a07690d11bc4cd85342b"
            },
            "downloads": -1,
            "filename": "colourmap-1.1.19-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "d1c2e678d19e71d1d408b7f88bf338d7",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3",
            "size": 10014,
            "upload_time": "2025-01-11T12:50:52",
            "upload_time_iso_8601": "2025-01-11T12:50:52.276434Z",
            "url": "https://files.pythonhosted.org/packages/a2/a3/a6467450929daf8c42f3a88c13145ba7160651e0bd14586ed972d8482f4d/colourmap-1.1.19-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3660d58936cecc45d2b3680d4f2f655e41903cad76448b07cd4660bc4a44597d",
                "md5": "e0d451e18eb5ba55a06ff0ac35123a15",
                "sha256": "7fde376dd4118ae95217ef8882c969ccd04c09899d4824ce3e8c7fab7b18349c"
            },
            "downloads": -1,
            "filename": "colourmap-1.1.19.tar.gz",
            "has_sig": false,
            "md5_digest": "e0d451e18eb5ba55a06ff0ac35123a15",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3",
            "size": 11195,
            "upload_time": "2025-01-11T12:50:54",
            "upload_time_iso_8601": "2025-01-11T12:50:54.660775Z",
            "url": "https://files.pythonhosted.org/packages/36/60/d58936cecc45d2b3680d4f2f655e41903cad76448b07cd4660bc4a44597d/colourmap-1.1.19.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-01-11 12:50:54",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "erdogant",
    "github_project": "colourmap",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [
        {
            "name": "matplotlib",
            "specs": []
        },
        {
            "name": "numpy",
            "specs": []
        }
    ],
    "lcname": "colourmap"
}
        
Elapsed time: 0.54343s