ccmaps


Nameccmaps JSON
Version 0.2.1 PyPI version JSON
download
home_pageNone
SummaryA few custom matplotlib colormaps.
upload_time2025-10-20 18:51:22
maintainerNone
docs_urlNone
authorNone
requires_python>=3.7
licenseNone
keywords matplotlib color
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # A few custom matplotlib colormaps
[![Continuous integration](https://github.com/invrs-io/ccmaps/actions/workflows/build-ci.yml/badge.svg)](https://github.com/invrs-io/ccmaps/actions)
[![PyPI version](https://img.shields.io/pypi/v/ccmaps)](https://pypi.org/project/ccmaps/)

This package includes custom matplotlib colormaps that I have found to be useful. These currently include:
 - `WBGYR` (white-blue-green-yellow-red), which is often used to plot electromagnetic field intensities ([1](https://projects.iq.harvard.edu/files/muri_metasurfaces/files/1190.full_.pdf), [2](https://github.com/flexcompute/metalens/blob/main/Metalens_Simulate_Single.ipynb)).
 - `BKR` (white-blue-black-red-white), appropriate for electromagnetic field amplitudes.
 - `cmap_for_wavelength`, which generates a colormap that interpolates between the chosen background color and the color for the specified wavelength (in nanometers).

## Install
```
pip install ccmaps
```

## Examples
![cmaps](https://github.com/invrs-io/ccmaps/blob/main/docs/img/cmaps.png?raw=true)

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "ccmaps",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "Martin Schubert <mfschubert@gmail.com>",
    "keywords": "matplotlib, color",
    "author": null,
    "author_email": "Martin Schubert <mfschubert@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/c8/48/8b57c07a32a040b2b5d59f05ef56a0c7abc1f72355844aacc66acc5ecaf7/ccmaps-0.2.1.tar.gz",
    "platform": null,
    "description": "# A few custom matplotlib colormaps\n[![Continuous integration](https://github.com/invrs-io/ccmaps/actions/workflows/build-ci.yml/badge.svg)](https://github.com/invrs-io/ccmaps/actions)\n[![PyPI version](https://img.shields.io/pypi/v/ccmaps)](https://pypi.org/project/ccmaps/)\n\nThis package includes custom matplotlib colormaps that I have found to be useful. These currently include:\n - `WBGYR` (white-blue-green-yellow-red), which is often used to plot electromagnetic field intensities ([1](https://projects.iq.harvard.edu/files/muri_metasurfaces/files/1190.full_.pdf), [2](https://github.com/flexcompute/metalens/blob/main/Metalens_Simulate_Single.ipynb)).\n - `BKR` (white-blue-black-red-white), appropriate for electromagnetic field amplitudes.\n - `cmap_for_wavelength`, which generates a colormap that interpolates between the chosen background color and the color for the specified wavelength (in nanometers).\n\n## Install\n```\npip install ccmaps\n```\n\n## Examples\n![cmaps](https://github.com/invrs-io/ccmaps/blob/main/docs/img/cmaps.png?raw=true)\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A few custom matplotlib colormaps.",
    "version": "0.2.1",
    "project_urls": null,
    "split_keywords": [
        "matplotlib",
        " color"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "cbff13b87ad1d1d732f1a4334c5777468a1f58971bf629daa0b3e481a2b78359",
                "md5": "9dcc9c975b41ddcb54843a46b2837fa3",
                "sha256": "5f0f7bc9a0acbf40e31ffd5f4bc574e646b7fd184cf1dd9d3a880173511f3d6f"
            },
            "downloads": -1,
            "filename": "ccmaps-0.2.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "9dcc9c975b41ddcb54843a46b2837fa3",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 5166,
            "upload_time": "2025-10-20T18:51:22",
            "upload_time_iso_8601": "2025-10-20T18:51:22.263295Z",
            "url": "https://files.pythonhosted.org/packages/cb/ff/13b87ad1d1d732f1a4334c5777468a1f58971bf629daa0b3e481a2b78359/ccmaps-0.2.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "c8488b57c07a32a040b2b5d59f05ef56a0c7abc1f72355844aacc66acc5ecaf7",
                "md5": "302444c2cc4a425b81687368342cfb9b",
                "sha256": "5f18c8f2c5c4cba0906cf953fadf9ffafb7ef72b766011f4d16695ce0f9b07a6"
            },
            "downloads": -1,
            "filename": "ccmaps-0.2.1.tar.gz",
            "has_sig": false,
            "md5_digest": "302444c2cc4a425b81687368342cfb9b",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 5200,
            "upload_time": "2025-10-20T18:51:22",
            "upload_time_iso_8601": "2025-10-20T18:51:22.996992Z",
            "url": "https://files.pythonhosted.org/packages/c8/48/8b57c07a32a040b2b5d59f05ef56a0c7abc1f72355844aacc66acc5ecaf7/ccmaps-0.2.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-10-20 18:51:22",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "ccmaps"
}
        
Elapsed time: 0.50216s