ccmaps


Nameccmaps JSON
Version 0.0.0 PyPI version JSON
download
home_pageNone
SummaryA few custom matplotlib colormaps.
upload_time2025-02-06 16:59:44
maintainerNone
docs_urlNone
authorNone
requires_python>=3.7
licenseMIT License Copyright (c) 2025 Martin Schubert Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
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/mfschubert/ccmaps/actions/workflows/build-ci.yml/badge.svg)

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)).
 - `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/mfschubert/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/25/a9/3d940ef77e14d1bafe9a82a8683f5efec7f203af7ccfcf22f2e4f82ab6c9/ccmaps-0.0.0.tar.gz",
    "platform": null,
    "description": "# A few custom matplotlib colormaps\n![Continuous integration](https://github.com/mfschubert/ccmaps/actions/workflows/build-ci.yml/badge.svg)\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 - `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/mfschubert/ccmaps/blob/main/docs/img/cmaps.png?raw=true)\n",
    "bugtrack_url": null,
    "license": "MIT License\n        \n        Copyright (c) 2025 Martin Schubert\n        \n        Permission is hereby granted, free of charge, to any person obtaining a copy\n        of this software and associated documentation files (the \"Software\"), to deal\n        in the Software without restriction, including without limitation the rights\n        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n        copies of the Software, and to permit persons to whom the Software is\n        furnished to do so, subject to the following conditions:\n        \n        The above copyright notice and this permission notice shall be included in all\n        copies or substantial portions of the Software.\n        \n        THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n        SOFTWARE.\n        ",
    "summary": "A few custom matplotlib colormaps.",
    "version": "0.0.0",
    "project_urls": null,
    "split_keywords": [
        "matplotlib",
        " color"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "ee418c387ab5e3bd61d53b05cffdf23b284a2113fc5cf799604ab0d2ea3f1f79",
                "md5": "d48aa4acdca7a9598a1431506e155596",
                "sha256": "bc8f6d37f3f83af5ad6d7fc61abca0d1e0ff27dc599aa5b11d07daf03a505c80"
            },
            "downloads": -1,
            "filename": "ccmaps-0.0.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "d48aa4acdca7a9598a1431506e155596",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 5999,
            "upload_time": "2025-02-06T16:59:42",
            "upload_time_iso_8601": "2025-02-06T16:59:42.957074Z",
            "url": "https://files.pythonhosted.org/packages/ee/41/8c387ab5e3bd61d53b05cffdf23b284a2113fc5cf799604ab0d2ea3f1f79/ccmaps-0.0.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "25a93d940ef77e14d1bafe9a82a8683f5efec7f203af7ccfcf22f2e4f82ab6c9",
                "md5": "4f663e1a43627881429a0c20d4de6e5e",
                "sha256": "33251cd511873e3ebd99363034dc4d74f338933922c7deb9afd8016b9a8401c4"
            },
            "downloads": -1,
            "filename": "ccmaps-0.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "4f663e1a43627881429a0c20d4de6e5e",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 5603,
            "upload_time": "2025-02-06T16:59:44",
            "upload_time_iso_8601": "2025-02-06T16:59:44.137091Z",
            "url": "https://files.pythonhosted.org/packages/25/a9/3d940ef77e14d1bafe9a82a8683f5efec7f203af7ccfcf22f2e4f82ab6c9/ccmaps-0.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-02-06 16:59:44",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "ccmaps"
}
        
Elapsed time: 0.50934s