foresight_colormaps
foresight_colormaps, the tables of the named palettes (generated: do not edit).
Generated by scripts/gen_colormaps.py from:
- Scientific colour maps 8.0.1, F. Crameri:
NAME/NAME.lutof ScientificColourMaps8.zip, https://zenodo.org/records/8409685, sha256 fe8ccf8e26d87b6703e96e4da1a6872f14a79e725c7025bc9db034898b8fc02c; - mpl-colormaps: colormaps.py of https://github.com/BIDS/colormap, commit bc549477db0c, sha256 b7478d10e2ccfdb22128867e137f16f55b687e9c225065e91bcbd6bb9e6c0352;
- cividis: lib/matplotlib/_cm_listed.py of https://github.com/matplotlib/matplotlib, commit 5c4c028dcca3, sha256 ddad3698f5129ceb1792a445371286c08bc9080298e657b3054aea19c9659ef9;
- black_body: black-body-table-byte-0256.csv of https://www.kennethmoreland.com/color-advice/black-body/, sha256 9591b49e0f3f87165f2ab1f801d85fcca5a9d14193ecb8a54d168c6ec421caaa.
Each map is 256 colors rrggbb: Crameri's 8-bit tables, the matplotlib ones rounded half up from 0..1.
The Scientific colour maps (the first 40 tables) are licensed under the MIT License:
Copyright (c) 2023, Fabio Crameri
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.
Cite them as: Crameri, F. (2018). Scientific colour maps. Zenodo, doi:10.5281/zenodo.1243862; Crameri, F., Shephard, G. E., Heron, P. J. (2020). The misuse of colour in science communication. Nature Communications 11, 5444, doi:10.1038/s41467-020-19160-7.
magma, inferno, plasma and viridis (mpl-colormaps, Nathaniel J. Smith, Stefan van der Walt and Eric Firing) are dedicated to the public domain (CC0 1.0).
black_body (Kenneth Moreland, https://www.kennethmoreland.com/color-advice/) is dedicated to the public domain (CC0).
cividis (Nunez, J. R., Anderton, C. R., Renslow, R. S. (2018). Optimizing colormaps with consideration for color vision deficiency to enable accurate interpretation of scientific data. PLoS ONE 13(7), e0199239, doi:10.1371/journal.pone.0199239) is the table its author contributed to matplotlib (PR #9871). Changes made: the 256 colors of _cividis_data rounded half up to 8 bits and written as rrggbb. matplotlib's notice and licence agreement:
Copyright (c) 2012- Matplotlib Development Team; All Rights Reserved
License agreement for matplotlib versions 1.3.0 and later
This LICENSE AGREEMENT is between the Matplotlib Development Team ("MDT"), and the Individual or Organization ("Licensee") accessing and otherwise using matplotlib software in source or binary form and its associated documentation.
Subject to the terms and conditions of this License Agreement, MDT hereby grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce, analyze, test, perform and/or display publicly, prepare derivative works, distribute, and otherwise use matplotlib alone or in any derivative version, provided, however, that MDT's License Agreement and MDT's notice of copyright, i.e., "Copyright (c) 2012- Matplotlib Development Team; All Rights Reserved" are retained in matplotlib alone or in any derivative version prepared by Licensee.
In the event Licensee prepares a derivative work that is based on or incorporates matplotlib or any part thereof, and wants to make the derivative work available to others as provided herein, then Licensee hereby agrees to include in any such work a brief summary of the changes made to matplotlib .
MDT is making matplotlib available to Licensee on an "AS IS" basis. MDT MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, MDT MAKES NO AND DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF MATPLOTLIB WILL NOT INFRINGE ANY THIRD PARTY RIGHTS.
MDT SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF MATPLOTLIB FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING MATPLOTLIB , OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
This License Agreement will automatically terminate upon a material breach of its terms and conditions.
Nothing in this License Agreement shall be deemed to create any relationship of agency, partnership, or joint venture between MDT and Licensee. This License Agreement does not grant permission to use MDT trademarks or trade name in a trademark sense to endorse or promote products or services of Licensee, or any third party.
By copying, installing or otherwise using matplotlib , Licensee agrees to be bound by the terms and conditions of this License Agreement.
and the notice, licence and disclaimers of its origin, pnnl/cmaputil:
Copyright (c) 2017, Battelle Memorial Institute
- Battelle Memorial Institute (hereinafter Battelle) hereby grants permission to any person or entity lawfully obtaining a copy of this software and associated documentation files (hereinafter "the Software") to redistribute and use the Software in source and binary forms, with or without modification. Such person or entity may use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and may permit others to do so, subject to the following conditions:
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimers.
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
Other than as used herein, neither the name Battelle Memorial Institute or Battelle may be used in any form whatsoever without the express written consent of Battelle.
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BATTELLE OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
This material was prepared as an account of work sponsored by an agency of the United States Government. Neither the United States Government nor the United States Department of Energy, nor Battelle, nor any of their employees, nor any jurisdiction or organization that has cooperated in the development of these materials, makes any warranty, express or implied, or assumes any legal liability or responsibility for the accuracy, completeness, or usefulness or any information, apparatus, product, software, or process disclosed, or represents that its use would not infringe privately owned rights. Reference herein to any specific commercial product, process, or service by trade name, trademark, manufacturer, or otherwise does not necessarily constitute or imply its endorsement, recommendation, or favoring by the United States Government or any agency thereof, or Battelle Memorial Institute. The views and opinions of authors expressed herein do not necessarily state or reflect those of the United States Government or any agency thereof. PACIFIC NORTHWEST NATIONAL LABORATORY operated by BATTELLE for the UNITED STATES DEPARTMENT OF ENERGY under Contract DE-AC05-76RL01830
Source: src/lib/foresight_colormaps.F90
Contents
Variables
| Name | Type | Attributes | Description |
|---|---|---|---|
COLORMAPS | integer(kind=I4P) | parameter | Number of named palettes. |
CM_ACTON | character(len=*) | parameter | acton, Scientific colour maps 8.0.1, F. Crameri. |
CM_BAM | character(len=*) | parameter | bam, Scientific colour maps 8.0.1, F. Crameri. |
CM_BAMAKO | character(len=*) | parameter | bamako, Scientific colour maps 8.0.1, F. Crameri. |
CM_BAMO | character(len=*) | parameter | bamO, Scientific colour maps 8.0.1, F. Crameri. |
CM_BATLOW | character(len=*) | parameter | batlow, Scientific colour maps 8.0.1, F. Crameri. |
CM_BATLOWK | character(len=*) | parameter | batlowK, Scientific colour maps 8.0.1, F. Crameri. |
CM_BATLOWW | character(len=*) | parameter | batlowW, Scientific colour maps 8.0.1, F. Crameri. |
CM_BERLIN | character(len=*) | parameter | berlin, Scientific colour maps 8.0.1, F. Crameri. |
CM_BILBAO | character(len=*) | parameter | bilbao, Scientific colour maps 8.0.1, F. Crameri. |
CM_BROC | character(len=*) | parameter | broc, Scientific colour maps 8.0.1, F. Crameri. |
CM_BROCO | character(len=*) | parameter | brocO, Scientific colour maps 8.0.1, F. Crameri. |
CM_BUDA | character(len=*) | parameter | buda, Scientific colour maps 8.0.1, F. Crameri. |
CM_BUKAVU | character(len=*) | parameter | bukavu, Scientific colour maps 8.0.1, F. Crameri. |
CM_CORK | character(len=*) | parameter | cork, Scientific colour maps 8.0.1, F. Crameri. |
CM_CORKO | character(len=*) | parameter | corkO, Scientific colour maps 8.0.1, F. Crameri. |
CM_DAVOS | character(len=*) | parameter | davos, Scientific colour maps 8.0.1, F. Crameri. |
CM_DEVON | character(len=*) | parameter | devon, Scientific colour maps 8.0.1, F. Crameri. |
CM_FES | character(len=*) | parameter | fes, Scientific colour maps 8.0.1, F. Crameri. |
CM_GLASGOW | character(len=*) | parameter | glasgow, Scientific colour maps 8.0.1, F. Crameri. |
CM_GRAYC | character(len=*) | parameter | grayC, Scientific colour maps 8.0.1, F. Crameri. |
CM_HAWAII | character(len=*) | parameter | hawaii, Scientific colour maps 8.0.1, F. Crameri. |
CM_IMOLA | character(len=*) | parameter | imola, Scientific colour maps 8.0.1, F. Crameri. |
CM_LAJOLLA | character(len=*) | parameter | lajolla, Scientific colour maps 8.0.1, F. Crameri. |
CM_LAPAZ | character(len=*) | parameter | lapaz, Scientific colour maps 8.0.1, F. Crameri. |
CM_LIPARI | character(len=*) | parameter | lipari, Scientific colour maps 8.0.1, F. Crameri. |
CM_LISBON | character(len=*) | parameter | lisbon, Scientific colour maps 8.0.1, F. Crameri. |
CM_MANAGUA | character(len=*) | parameter | managua, Scientific colour maps 8.0.1, F. Crameri. |
CM_NAVIA | character(len=*) | parameter | navia, Scientific colour maps 8.0.1, F. Crameri. |
CM_NAVIAW | character(len=*) | parameter | naviaW, Scientific colour maps 8.0.1, F. Crameri. |
CM_NUUK | character(len=*) | parameter | nuuk, Scientific colour maps 8.0.1, F. Crameri. |
CM_OLERON | character(len=*) | parameter | oleron, Scientific colour maps 8.0.1, F. Crameri. |
CM_OSLO | character(len=*) | parameter | oslo, Scientific colour maps 8.0.1, F. Crameri. |
CM_ROMA | character(len=*) | parameter | roma, Scientific colour maps 8.0.1, F. Crameri. |
CM_ROMAO | character(len=*) | parameter | romaO, Scientific colour maps 8.0.1, F. Crameri. |
CM_TOFINO | character(len=*) | parameter | tofino, Scientific colour maps 8.0.1, F. Crameri. |
CM_TOKYO | character(len=*) | parameter | tokyo, Scientific colour maps 8.0.1, F. Crameri. |
CM_TURKU | character(len=*) | parameter | turku, Scientific colour maps 8.0.1, F. Crameri. |
CM_VANIMO | character(len=*) | parameter | vanimo, Scientific colour maps 8.0.1, F. Crameri. |
CM_VIK | character(len=*) | parameter | vik, Scientific colour maps 8.0.1, F. Crameri. |
CM_VIKO | character(len=*) | parameter | vikO, Scientific colour maps 8.0.1, F. Crameri. |
CM_MAGMA | character(len=*) | parameter | magma, mpl-colormaps (CC0). |
CM_INFERNO | character(len=*) | parameter | inferno, mpl-colormaps (CC0). |
CM_PLASMA | character(len=*) | parameter | plasma, mpl-colormaps (CC0). |
CM_VIRIDIS | character(len=*) | parameter | viridis, mpl-colormaps (CC0). |
CM_CIVIDIS | character(len=*) | parameter | cividis, J. R. Nunez et al.. |
CM_BLACK_BODY | character(len=*) | parameter | black_body, K. Moreland (CC0). |
COLORMAP_NAMES | character(len=10) | parameter | Names, canonical case. |
TABLES | character(len=1536) | parameter | Tables, in the order of the names. |
CATEGORICALS | integer(kind=I4P) | parameter | Number of categorical orders. |
CATEGORICAL_LEVELS | integer(kind=I4P) | parameter | Colors of an order. |
CS_ACTONS | character(len=*) | parameter | actonS, Crameri's categorical order. |
CS_BAMAKOS | character(len=*) | parameter | bamakoS, Crameri's categorical order. |
CS_BATLOWS | character(len=*) | parameter | batlowS, Crameri's categorical order. |
CS_BATLOWKS | character(len=*) | parameter | batlowKS, Crameri's categorical order. |
CS_BATLOWWS | character(len=*) | parameter | batlowWS, Crameri's categorical order. |
CS_BILBAOS | character(len=*) | parameter | bilbaoS, Crameri's categorical order. |
CS_BUDAS | character(len=*) | parameter | budaS, Crameri's categorical order. |
CS_DAVOSS | character(len=*) | parameter | davosS, Crameri's categorical order. |
CS_DEVONS | character(len=*) | parameter | devonS, Crameri's categorical order. |
CS_GLASGOWS | character(len=*) | parameter | glasgowS, Crameri's categorical order. |
CS_GRAYCS | character(len=*) | parameter | grayCS, Crameri's categorical order. |
CS_HAWAIIS | character(len=*) | parameter | hawaiiS, Crameri's categorical order. |
CS_IMOLAS | character(len=*) | parameter | imolaS, Crameri's categorical order. |
CS_LAJOLLAS | character(len=*) | parameter | lajollaS, Crameri's categorical order. |
CS_LAPAZS | character(len=*) | parameter | lapazS, Crameri's categorical order. |
CS_LIPARIS | character(len=*) | parameter | lipariS, Crameri's categorical order. |
CS_NAVIAS | character(len=*) | parameter | naviaS, Crameri's categorical order. |
CS_NAVIAWS | character(len=*) | parameter | naviaWS, Crameri's categorical order. |
CS_NUUKS | character(len=*) | parameter | nuukS, Crameri's categorical order. |
CS_OSLOS | character(len=*) | parameter | osloS, Crameri's categorical order. |
CS_TOKYOS | character(len=*) | parameter | tokyoS, Crameri's categorical order. |
CS_TURKUS | character(len=*) | parameter | turkuS, Crameri's categorical order. |
CATEGORICAL_NAMES | character(len=10) | parameter | Categorical order names (batlowS: batlow's colors, the most distinct first). |
CATEGORICAL_TABLES | character(len=600) | parameter | Categorical tables, in the order of the names. |
Functions
colormap_id
Index of the named palette name, case-insensitive; 0 if unknown.
Attributes: pure
Returns: integer(kind=I4P)
function colormap_id(name) result(id)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
name | character(len=*) | in | Palette name. |
Call graph
colormap_hex
Color k (0 to 255, clamped) of the named palette id, as rrggbb.
Attributes: pure
Returns: character(len=6)
function colormap_hex(id, k) result(hex)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
id | integer(kind=I4P) | in | Palette index, 1 to COLORMAPS. | |
k | integer(kind=I4P) | in | Color index. |
Call graph
categorical_id
Index of the categorical order name (batlowS, ...), case-insensitive; 0 if unknown.
Attributes: pure
Returns: integer(kind=I4P)
function categorical_id(name) result(id)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
name | character(len=*) | in | Order name. |
Call graph
categorical_hex
Color k (1 to 100, clamped) of the categorical order id, as rrggbb.
Attributes: pure
Returns: character(len=6)
function categorical_hex(id, k) result(hex)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
id | integer(kind=I4P) | in | Order index, 1 to CATEGORICALS. | |
k | integer(kind=I4P) | in | Color index. |
Call graph
lower
s in lower case (ASCII).
Attributes: pure
Returns: character(len=len)
function lower(s) result(l)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
s | character(len=*) | in | String. |
Call graph