Skip to content

foresight_colormaps ​

foresight_colormaps, the tables of the named palettes (generated: do not edit).

Generated by scripts/gen_colormaps.py from:

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 ​

  1. 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.

  2. 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.

  3. 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 .

  4. 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.

  5. 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.

  6. This License Agreement will automatically terminate upon a material breach of its terms and conditions.

  7. 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.

  8. 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

  1. 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.

  1. 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 ​

NameTypeAttributesDescription
COLORMAPSinteger(kind=I4P)parameterNumber of named palettes.
CM_ACTONcharacter(len=*)parameteracton, Scientific colour maps 8.0.1, F. Crameri.
CM_BAMcharacter(len=*)parameterbam, Scientific colour maps 8.0.1, F. Crameri.
CM_BAMAKOcharacter(len=*)parameterbamako, Scientific colour maps 8.0.1, F. Crameri.
CM_BAMOcharacter(len=*)parameterbamO, Scientific colour maps 8.0.1, F. Crameri.
CM_BATLOWcharacter(len=*)parameterbatlow, Scientific colour maps 8.0.1, F. Crameri.
CM_BATLOWKcharacter(len=*)parameterbatlowK, Scientific colour maps 8.0.1, F. Crameri.
CM_BATLOWWcharacter(len=*)parameterbatlowW, Scientific colour maps 8.0.1, F. Crameri.
CM_BERLINcharacter(len=*)parameterberlin, Scientific colour maps 8.0.1, F. Crameri.
CM_BILBAOcharacter(len=*)parameterbilbao, Scientific colour maps 8.0.1, F. Crameri.
CM_BROCcharacter(len=*)parameterbroc, Scientific colour maps 8.0.1, F. Crameri.
CM_BROCOcharacter(len=*)parameterbrocO, Scientific colour maps 8.0.1, F. Crameri.
CM_BUDAcharacter(len=*)parameterbuda, Scientific colour maps 8.0.1, F. Crameri.
CM_BUKAVUcharacter(len=*)parameterbukavu, Scientific colour maps 8.0.1, F. Crameri.
CM_CORKcharacter(len=*)parametercork, Scientific colour maps 8.0.1, F. Crameri.
CM_CORKOcharacter(len=*)parametercorkO, Scientific colour maps 8.0.1, F. Crameri.
CM_DAVOScharacter(len=*)parameterdavos, Scientific colour maps 8.0.1, F. Crameri.
CM_DEVONcharacter(len=*)parameterdevon, Scientific colour maps 8.0.1, F. Crameri.
CM_FEScharacter(len=*)parameterfes, Scientific colour maps 8.0.1, F. Crameri.
CM_GLASGOWcharacter(len=*)parameterglasgow, Scientific colour maps 8.0.1, F. Crameri.
CM_GRAYCcharacter(len=*)parametergrayC, Scientific colour maps 8.0.1, F. Crameri.
CM_HAWAIIcharacter(len=*)parameterhawaii, Scientific colour maps 8.0.1, F. Crameri.
CM_IMOLAcharacter(len=*)parameterimola, Scientific colour maps 8.0.1, F. Crameri.
CM_LAJOLLAcharacter(len=*)parameterlajolla, Scientific colour maps 8.0.1, F. Crameri.
CM_LAPAZcharacter(len=*)parameterlapaz, Scientific colour maps 8.0.1, F. Crameri.
CM_LIPARIcharacter(len=*)parameterlipari, Scientific colour maps 8.0.1, F. Crameri.
CM_LISBONcharacter(len=*)parameterlisbon, Scientific colour maps 8.0.1, F. Crameri.
CM_MANAGUAcharacter(len=*)parametermanagua, Scientific colour maps 8.0.1, F. Crameri.
CM_NAVIAcharacter(len=*)parameternavia, Scientific colour maps 8.0.1, F. Crameri.
CM_NAVIAWcharacter(len=*)parameternaviaW, Scientific colour maps 8.0.1, F. Crameri.
CM_NUUKcharacter(len=*)parameternuuk, Scientific colour maps 8.0.1, F. Crameri.
CM_OLERONcharacter(len=*)parameteroleron, Scientific colour maps 8.0.1, F. Crameri.
CM_OSLOcharacter(len=*)parameteroslo, Scientific colour maps 8.0.1, F. Crameri.
CM_ROMAcharacter(len=*)parameterroma, Scientific colour maps 8.0.1, F. Crameri.
CM_ROMAOcharacter(len=*)parameterromaO, Scientific colour maps 8.0.1, F. Crameri.
CM_TOFINOcharacter(len=*)parametertofino, Scientific colour maps 8.0.1, F. Crameri.
CM_TOKYOcharacter(len=*)parametertokyo, Scientific colour maps 8.0.1, F. Crameri.
CM_TURKUcharacter(len=*)parameterturku, Scientific colour maps 8.0.1, F. Crameri.
CM_VANIMOcharacter(len=*)parametervanimo, Scientific colour maps 8.0.1, F. Crameri.
CM_VIKcharacter(len=*)parametervik, Scientific colour maps 8.0.1, F. Crameri.
CM_VIKOcharacter(len=*)parametervikO, Scientific colour maps 8.0.1, F. Crameri.
CM_MAGMAcharacter(len=*)parametermagma, mpl-colormaps (CC0).
CM_INFERNOcharacter(len=*)parameterinferno, mpl-colormaps (CC0).
CM_PLASMAcharacter(len=*)parameterplasma, mpl-colormaps (CC0).
CM_VIRIDIScharacter(len=*)parameterviridis, mpl-colormaps (CC0).
CM_CIVIDIScharacter(len=*)parametercividis, J. R. Nunez et al..
CM_BLACK_BODYcharacter(len=*)parameterblack_body, K. Moreland (CC0).
COLORMAP_NAMEScharacter(len=10)parameterNames, canonical case.
TABLEScharacter(len=1536)parameterTables, in the order of the names.
CATEGORICALSinteger(kind=I4P)parameterNumber of categorical orders.
CATEGORICAL_LEVELSinteger(kind=I4P)parameterColors of an order.
CS_ACTONScharacter(len=*)parameteractonS, Crameri's categorical order.
CS_BAMAKOScharacter(len=*)parameterbamakoS, Crameri's categorical order.
CS_BATLOWScharacter(len=*)parameterbatlowS, Crameri's categorical order.
CS_BATLOWKScharacter(len=*)parameterbatlowKS, Crameri's categorical order.
CS_BATLOWWScharacter(len=*)parameterbatlowWS, Crameri's categorical order.
CS_BILBAOScharacter(len=*)parameterbilbaoS, Crameri's categorical order.
CS_BUDAScharacter(len=*)parameterbudaS, Crameri's categorical order.
CS_DAVOSScharacter(len=*)parameterdavosS, Crameri's categorical order.
CS_DEVONScharacter(len=*)parameterdevonS, Crameri's categorical order.
CS_GLASGOWScharacter(len=*)parameterglasgowS, Crameri's categorical order.
CS_GRAYCScharacter(len=*)parametergrayCS, Crameri's categorical order.
CS_HAWAIIScharacter(len=*)parameterhawaiiS, Crameri's categorical order.
CS_IMOLAScharacter(len=*)parameterimolaS, Crameri's categorical order.
CS_LAJOLLAScharacter(len=*)parameterlajollaS, Crameri's categorical order.
CS_LAPAZScharacter(len=*)parameterlapazS, Crameri's categorical order.
CS_LIPARIScharacter(len=*)parameterlipariS, Crameri's categorical order.
CS_NAVIAScharacter(len=*)parameternaviaS, Crameri's categorical order.
CS_NAVIAWScharacter(len=*)parameternaviaWS, Crameri's categorical order.
CS_NUUKScharacter(len=*)parameternuukS, Crameri's categorical order.
CS_OSLOScharacter(len=*)parameterosloS, Crameri's categorical order.
CS_TOKYOScharacter(len=*)parametertokyoS, Crameri's categorical order.
CS_TURKUScharacter(len=*)parameterturkuS, Crameri's categorical order.
CATEGORICAL_NAMEScharacter(len=10)parameterCategorical order names (batlowS: batlow's colors, the most distinct first).
CATEGORICAL_TABLEScharacter(len=600)parameterCategorical 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)

fortran
function colormap_id(name) result(id)

Arguments

NameTypeIntentAttributesDescription
namecharacter(len=*)inPalette name.

Call graph

colormap_hex ​

Color k (0 to 255, clamped) of the named palette id, as rrggbb.

Attributes: pure

Returns: character(len=6)

fortran
function colormap_hex(id, k) result(hex)

Arguments

NameTypeIntentAttributesDescription
idinteger(kind=I4P)inPalette index, 1 to COLORMAPS.
kinteger(kind=I4P)inColor index.

Call graph

categorical_id ​

Index of the categorical order name (batlowS, ...), case-insensitive; 0 if unknown.

Attributes: pure

Returns: integer(kind=I4P)

fortran
function categorical_id(name) result(id)

Arguments

NameTypeIntentAttributesDescription
namecharacter(len=*)inOrder name.

Call graph

categorical_hex ​

Color k (1 to 100, clamped) of the categorical order id, as rrggbb.

Attributes: pure

Returns: character(len=6)

fortran
function categorical_hex(id, k) result(hex)

Arguments

NameTypeIntentAttributesDescription
idinteger(kind=I4P)inOrder index, 1 to CATEGORICALS.
kinteger(kind=I4P)inColor index.

Call graph

lower ​

s in lower case (ASCII).

Attributes: pure

Returns: character(len=len)

fortran
function lower(s) result(l)

Arguments

NameTypeIntentAttributesDescription
scharacter(len=*)inString.

Call graph

Released under the GPL v3, BSD 2-Clause, BSD 3-Clause or MIT License.