cppcolormap v1.4.5
Loading...
Searching...
No Matches
cppcolormap.h File Reference
#include <cfloat>
#include <iostream>
#include <math.h>
#include <sstream>
#include <string>
#include <vector>
#include <xtensor/xarray.hpp>
#include <xtensor/xmanipulation.hpp>
#include <xtensor/xmath.hpp>
#include <xtensor/xsort.hpp>
#include <xtensor/xtensor.hpp>
#include <xtensor/xview.hpp>

Go to the source code of this file.

Namespaces

namespace  cppcolormap::array_type
 Container type.
 

Macros

#define CPPCOLORMAP_ASSERT(expr)
 All assertions are implementation as:
 
#define CPPCOLORMAP_VERSION   "@PROJECT_VERSION@"
 Current version.
 

Typedefs

template<typename T , size_t N>
using cppcolormap::array_type::tensor = xt::xtensor< T, N >
 Fixed (static) rank array.
 

Enumerations

enum  cppcolormap::metric { cppcolormap::euclidean , cppcolormap::fast_perceptual , cppcolormap::perceptual }
 Algorithm to use for color matching. More...
 

Functions

std::string cppcolormap::version ()
 Return version string.
 
std::vector< std::string > cppcolormap::version_dependencies ()
 Return versions of this library and of all of its dependencies.
 
template<class T , typename std::enable_if_t< xt::get_rank< T >::value !=1, int > = 0>
std::vector< std::string > cppcolormap::rgb2hex (const T &arg)
 Convert RGB -> HEX.
 
template<class T , typename std::enable_if_t< xt::get_rank< T >::value==1, int > = 0>
std::string cppcolormap::rgb2hex (const T &arg)
 Convert RGB -> HEX.
 
array_type::tensor< double, 2 > cppcolormap::hex2rgb (const std::vector< std::string > &arg)
 Convert HEX -> RGB.
 
array_type::tensor< double, 1 > cppcolormap::hex2rgb (const std::string &arg)
 Convert HEX -> RGB.
 
template<class T , class R = array_type::tensor<double, 2>>
cppcolormap::interp (const T &arg, size_t N)
 Interpolate the individual colours.
 
template<class E , class C , typename S >
auto cppcolormap::as_colors (const E &data, const C &colors, S vmin, S vmax)
 Convert data to colors using a colormap.
 
template<class E , class C >
auto cppcolormap::as_colors (const E &data, const C &colors)
 Convert data to colors using a colormap.
 
array_type::tensor< double, 2 > cppcolormap::Accent (size_t N=8)
 Qualitative colormap.
 
array_type::tensor< double, 2 > cppcolormap::Dark2 (size_t N=8)
 Qualitative colormap.
 
array_type::tensor< double, 2 > cppcolormap::Paired (size_t N=12)
 Qualitative colormap.
 
array_type::tensor< double, 2 > cppcolormap::Spectral (size_t N=11)
 Qualitative colormap.
 
array_type::tensor< double, 2 > cppcolormap::Pastel1 (size_t N=9)
 Qualitative colormap.
 
array_type::tensor< double, 2 > cppcolormap::Pastel2 (size_t N=8)
 Qualitative colormap.
 
array_type::tensor< double, 2 > cppcolormap::Set1 (size_t N=9)
 Qualitative colormap.
 
array_type::tensor< double, 2 > cppcolormap::Set2 (size_t N=8)
 Qualitative colormap.
 
array_type::tensor< double, 2 > cppcolormap::Set3 (size_t N=12)
 Qualitative colormap.
 
array_type::tensor< double, 2 > cppcolormap::Blues (size_t N=9)
 Sequential colormap.
 
array_type::tensor< double, 2 > cppcolormap::Greens (size_t N=9)
 Sequential colormap.
 
array_type::tensor< double, 2 > cppcolormap::Greys (size_t N=2)
 Sequential colormap.
 
array_type::tensor< double, 2 > cppcolormap::Oranges (size_t N=9)
 Sequential colormap.
 
array_type::tensor< double, 2 > cppcolormap::Purples (size_t N=9)
 Sequential colormap.
 
array_type::tensor< double, 2 > cppcolormap::Reds (size_t N=9)
 Sequential colormap.
 
array_type::tensor< double, 2 > cppcolormap::BuPu (size_t N=9)
 Sequential colormap.
 
array_type::tensor< double, 2 > cppcolormap::GnBu (size_t N=9)
 Sequential colormap.
 
array_type::tensor< double, 2 > cppcolormap::PuBu (size_t N=9)
 Sequential colormap.
 
array_type::tensor< double, 2 > cppcolormap::PuBuGn (size_t N=9)
 Sequential colormap.
 
array_type::tensor< double, 2 > cppcolormap::PuRd (size_t N=9)
 Sequential colormap.
 
array_type::tensor< double, 2 > cppcolormap::RdPu (size_t N=9)
 Sequential colormap.
 
array_type::tensor< double, 2 > cppcolormap::OrRd (size_t N=9)
 Sequential colormap.
 
array_type::tensor< double, 2 > cppcolormap::RdOrYl (size_t N=9)
 Sequential colormap.
 
array_type::tensor< double, 2 > cppcolormap::YlGn (size_t N=9)
 Sequential colormap.
 
array_type::tensor< double, 2 > cppcolormap::YlGnBu (size_t N=9)
 Sequential colormap.
 
array_type::tensor< double, 2 > cppcolormap::YlOrRd (size_t N=9)
 Sequential colormap.
 
array_type::tensor< double, 2 > cppcolormap::BrBG (size_t N=11)
 Diverging colormap.
 
array_type::tensor< double, 2 > cppcolormap::PuOr (size_t N=11)
 Diverging colormap.
 
array_type::tensor< double, 2 > cppcolormap::RdBu (size_t N=11)
 Diverging colormap.
 
array_type::tensor< double, 2 > cppcolormap::RdGy (size_t N=11)
 Diverging colormap.
 
array_type::tensor< double, 2 > cppcolormap::RdYlBu (size_t N=11)
 Diverging colormap.
 
array_type::tensor< double, 2 > cppcolormap::RdYlGn (size_t N=11)
 Diverging colormap.
 
array_type::tensor< double, 2 > cppcolormap::PiYG (size_t N=11)
 Diverging colormap.
 
array_type::tensor< double, 2 > cppcolormap::PRGn (size_t N=11)
 Diverging colormap.
 
array_type::tensor< double, 2 > cppcolormap::spring (size_t N=256)
 matplotlib colormap, from anchor.
 
array_type::tensor< double, 2 > cppcolormap::summer (size_t N=256)
 matplotlib colormap, from anchor.
 
array_type::tensor< double, 2 > cppcolormap::autumn (size_t N=256)
 matplotlib colormap, from anchor.
 
array_type::tensor< double, 2 > cppcolormap::winter (size_t N=256)
 matplotlib colormap, from anchor.
 
array_type::tensor< double, 2 > cppcolormap::bone (size_t N=256)
 matplotlib colormap, from anchor.
 
array_type::tensor< double, 2 > cppcolormap::cool (size_t N=256)
 matplotlib colormap, from anchor.
 
array_type::tensor< double, 2 > cppcolormap::hot (size_t N=256)
 matplotlib colormap, from anchor.
 
array_type::tensor< double, 2 > cppcolormap::copper (size_t N=256)
 matplotlib colormap, from anchor.
 
array_type::tensor< double, 2 > cppcolormap::hsv (size_t N=256)
 matplotlib colormap, from anchor.
 
array_type::tensor< double, 2 > cppcolormap::nipy_spectral (size_t N=256)
 matplotlib colormap, from anchor.
 
array_type::tensor< double, 2 > cppcolormap::jet (size_t N=256)
 matplotlib colormap, from anchor.
 
array_type::tensor< double, 2 > cppcolormap::terrain (size_t N=6)
 matplotlib colormap, from fraction.
 
array_type::tensor< double, 2 > cppcolormap::afmhot (size_t N=256)
 GNU plot colormap.
 
array_type::tensor< double, 2 > cppcolormap::magma (size_t N=256)
 matplotlib colormap.
 
array_type::tensor< double, 2 > cppcolormap::inferno (size_t N=256)
 matplotlib colormap.
 
array_type::tensor< double, 2 > cppcolormap::plasma (size_t N=256)
 matplotlib colormap.
 
array_type::tensor< double, 2 > cppcolormap::viridis (size_t N=256)
 matplotlib colormap.
 
array_type::tensor< double, 2 > cppcolormap::seismic (size_t N=5)
 matplotlib colormap.
 
array_type::tensor< double, 2 > cppcolormap::White (size_t N=1)
 Monotone colormap.
 
array_type::tensor< double, 2 > cppcolormap::Grey (size_t N=1)
 Monotone colormap.
 
array_type::tensor< double, 2 > cppcolormap::Black (size_t N=1)
 Monotone colormap.
 
array_type::tensor< double, 2 > cppcolormap::Red (size_t N=1)
 Monotone colormap.
 
array_type::tensor< double, 2 > cppcolormap::Blue (size_t N=1)
 Monotone colormap.
 
array_type::tensor< double, 2 > cppcolormap::tuewarmred (size_t N=1)
 Eindhoven University of Technology.
 
array_type::tensor< double, 2 > cppcolormap::tuedarkblue (size_t N=1)
 Eindhoven University of Technology.
 
array_type::tensor< double, 2 > cppcolormap::tueblue (size_t N=1)
 Eindhoven University of Technology.
 
array_type::tensor< double, 2 > cppcolormap::tuelightblue (size_t N=1)
 Eindhoven University of Technology.
 
array_type::tensor< double, 2 > cppcolormap::Apricot (size_t N=1)
 dvips color.
 
array_type::tensor< double, 2 > cppcolormap::Aquamarine (size_t N=1)
 dvips color.
 
array_type::tensor< double, 2 > cppcolormap::Bittersweet (size_t N=1)
 dvips color.
 
array_type::tensor< double, 2 > cppcolormap::BlueGreen (size_t N=1)
 dvips color.
 
array_type::tensor< double, 2 > cppcolormap::BlueViolet (size_t N=1)
 dvips color.
 
array_type::tensor< double, 2 > cppcolormap::BrickRed (size_t N=1)
 dvips color.
 
array_type::tensor< double, 2 > cppcolormap::Brown (size_t N=1)
 dvips color.
 
array_type::tensor< double, 2 > cppcolormap::BurntOrange (size_t N=1)
 dvips color.
 
array_type::tensor< double, 2 > cppcolormap::CadetBlue (size_t N=1)
 dvips color.
 
array_type::tensor< double, 2 > cppcolormap::CarnationPink (size_t N=1)
 dvips color.
 
array_type::tensor< double, 2 > cppcolormap::Cerulean (size_t N=1)
 dvips color.
 
array_type::tensor< double, 2 > cppcolormap::CornflowerBlue (size_t N=1)
 dvips color.
 
array_type::tensor< double, 2 > cppcolormap::Cyan (size_t N=1)
 dvips color.
 
array_type::tensor< double, 2 > cppcolormap::Dandelion (size_t N=1)
 dvips color.
 
array_type::tensor< double, 2 > cppcolormap::DarkOrchid (size_t N=1)
 dvips color.
 
array_type::tensor< double, 2 > cppcolormap::Emerald (size_t N=1)
 dvips color.
 
array_type::tensor< double, 2 > cppcolormap::ForestGreen (size_t N=1)
 dvips color.
 
array_type::tensor< double, 2 > cppcolormap::Fuchsia (size_t N=1)
 dvips color.
 
array_type::tensor< double, 2 > cppcolormap::Goldenrod (size_t N=1)
 dvips color.
 
array_type::tensor< double, 2 > cppcolormap::Gray (size_t N=1)
 dvips color.
 
array_type::tensor< double, 2 > cppcolormap::Green (size_t N=1)
 dvips color.
 
array_type::tensor< double, 2 > cppcolormap::GreenYellow (size_t N=1)
 dvips color.
 
array_type::tensor< double, 2 > cppcolormap::JungleGreen (size_t N=1)
 dvips color.
 
array_type::tensor< double, 2 > cppcolormap::Lavender (size_t N=1)
 dvips color.
 
array_type::tensor< double, 2 > cppcolormap::LimeGreen (size_t N=1)
 dvips color.
 
array_type::tensor< double, 2 > cppcolormap::Magenta (size_t N=1)
 dvips color.
 
array_type::tensor< double, 2 > cppcolormap::Mahogany (size_t N=1)
 dvips color.
 
array_type::tensor< double, 2 > cppcolormap::Maroon (size_t N=1)
 dvips color.
 
array_type::tensor< double, 2 > cppcolormap::Melon (size_t N=1)
 dvips color.
 
array_type::tensor< double, 2 > cppcolormap::MidnightBlue (size_t N=1)
 dvips color.
 
array_type::tensor< double, 2 > cppcolormap::Mulberry (size_t N=1)
 dvips color.
 
array_type::tensor< double, 2 > cppcolormap::NavyBlue (size_t N=1)
 dvips color.
 
array_type::tensor< double, 2 > cppcolormap::OliveGreen (size_t N=1)
 dvips color.
 
array_type::tensor< double, 2 > cppcolormap::Orange (size_t N=1)
 dvips color.
 
array_type::tensor< double, 2 > cppcolormap::OrangeRed (size_t N=1)
 dvips color.
 
array_type::tensor< double, 2 > cppcolormap::Orchid (size_t N=1)
 dvips color.
 
array_type::tensor< double, 2 > cppcolormap::Peach (size_t N=1)
 dvips color.
 
array_type::tensor< double, 2 > cppcolormap::Periwinkle (size_t N=1)
 dvips color.
 
array_type::tensor< double, 2 > cppcolormap::PineGreen (size_t N=1)
 dvips color.
 
array_type::tensor< double, 2 > cppcolormap::Plum (size_t N=1)
 dvips color.
 
array_type::tensor< double, 2 > cppcolormap::ProcessBlue (size_t N=1)
 dvips color.
 
array_type::tensor< double, 2 > cppcolormap::Purple (size_t N=1)
 dvips color.
 
array_type::tensor< double, 2 > cppcolormap::RawSienna (size_t N=1)
 dvips color.
 
array_type::tensor< double, 2 > cppcolormap::RedOrange (size_t N=1)
 dvips color.
 
array_type::tensor< double, 2 > cppcolormap::RedViolet (size_t N=1)
 dvips color.
 
array_type::tensor< double, 2 > cppcolormap::Rhodamine (size_t N=1)
 dvips color.
 
array_type::tensor< double, 2 > cppcolormap::RoyalBlue (size_t N=1)
 dvips color.
 
array_type::tensor< double, 2 > cppcolormap::RoyalPurple (size_t N=1)
 dvips color.
 
array_type::tensor< double, 2 > cppcolormap::RubineRed (size_t N=1)
 dvips color.
 
array_type::tensor< double, 2 > cppcolormap::Salmon (size_t N=1)
 dvips color.
 
array_type::tensor< double, 2 > cppcolormap::SeaGreen (size_t N=1)
 dvips color.
 
array_type::tensor< double, 2 > cppcolormap::Sepia (size_t N=1)
 dvips color.
 
array_type::tensor< double, 2 > cppcolormap::SkyBlue (size_t N=1)
 dvips color.
 
array_type::tensor< double, 2 > cppcolormap::SpringGreen (size_t N=1)
 dvips color.
 
array_type::tensor< double, 2 > cppcolormap::Tan (size_t N=1)
 dvips color.
 
array_type::tensor< double, 2 > cppcolormap::TealBlue (size_t N=1)
 dvips color.
 
array_type::tensor< double, 2 > cppcolormap::Thistle (size_t N=1)
 dvips color.
 
array_type::tensor< double, 2 > cppcolormap::Turquoise (size_t N=1)
 dvips color.
 
array_type::tensor< double, 2 > cppcolormap::Violet (size_t N=1)
 dvips color.
 
array_type::tensor< double, 2 > cppcolormap::VioletRed (size_t N=1)
 dvips color.
 
array_type::tensor< double, 2 > cppcolormap::WildStrawberry (size_t N=1)
 dvips color.
 
array_type::tensor< double, 2 > cppcolormap::Yellow (size_t N=1)
 dvips color.
 
array_type::tensor< double, 2 > cppcolormap::YellowGreen (size_t N=1)
 dvips color.
 
array_type::tensor< double, 2 > cppcolormap::YellowOrange (size_t N=1)
 dvips color.
 
array_type::tensor< double, 2 > cppcolormap::Accent_r (size_t N=8)
 Inverse of cppcolormap::Accent.
 
array_type::tensor< double, 2 > cppcolormap::Dark2_r (size_t N=8)
 Inverse of cppcolormap::Dark2.
 
array_type::tensor< double, 2 > cppcolormap::Paired_r (size_t N=12)
 Inverse of cppcolormap::Paired.
 
array_type::tensor< double, 2 > cppcolormap::Spectral_r (size_t N=11)
 Inverse of cppcolormap::Spectral.
 
array_type::tensor< double, 2 > cppcolormap::Pastel1_r (size_t N=9)
 Inverse of cppcolormap::Pastel1.
 
array_type::tensor< double, 2 > cppcolormap::Pastel2_r (size_t N=8)
 Inverse of cppcolormap::Pastel2.
 
array_type::tensor< double, 2 > cppcolormap::Set1_r (size_t N=9)
 Inverse of cppcolormap::Set1.
 
array_type::tensor< double, 2 > cppcolormap::Set2_r (size_t N=8)
 Inverse of cppcolormap::Set2.
 
array_type::tensor< double, 2 > cppcolormap::Set3_r (size_t N=12)
 Inverse of cppcolormap::Set3.
 
array_type::tensor< double, 2 > cppcolormap::Blues_r (size_t N=9)
 Inverse of cppcolormap::Blues.
 
array_type::tensor< double, 2 > cppcolormap::Greens_r (size_t N=9)
 Inverse of cppcolormap::Greens.
 
array_type::tensor< double, 2 > cppcolormap::Greys_r (size_t N=2)
 Inverse of cppcolormap::Greys.
 
array_type::tensor< double, 2 > cppcolormap::Oranges_r (size_t N=9)
 Inverse of cppcolormap::Oranges.
 
array_type::tensor< double, 2 > cppcolormap::Purples_r (size_t N=9)
 Inverse of cppcolormap::Purples.
 
array_type::tensor< double, 2 > cppcolormap::Reds_r (size_t N=9)
 Inverse of cppcolormap::Reds.
 
array_type::tensor< double, 2 > cppcolormap::BuPu_r (size_t N=9)
 Inverse of cppcolormap::BuPu.
 
array_type::tensor< double, 2 > cppcolormap::GnBu_r (size_t N=9)
 Inverse of cppcolormap::GnBu.
 
array_type::tensor< double, 2 > cppcolormap::PuBu_r (size_t N=9)
 Inverse of cppcolormap::PuBu.
 
array_type::tensor< double, 2 > cppcolormap::PuBuGn_r (size_t N=9)
 Inverse of cppcolormap::PuBuGn.
 
array_type::tensor< double, 2 > cppcolormap::PuRd_r (size_t N=9)
 Inverse of cppcolormap::PuRd.
 
array_type::tensor< double, 2 > cppcolormap::RdPu_r (size_t N=9)
 Inverse of cppcolormap::RdPu.
 
array_type::tensor< double, 2 > cppcolormap::OrRd_r (size_t N=9)
 Inverse of cppcolormap::OrRd.
 
array_type::tensor< double, 2 > cppcolormap::RdOrYl_r (size_t N=9)
 Inverse of cppcolormap::RdOrYl.
 
array_type::tensor< double, 2 > cppcolormap::YlGn_r (size_t N=9)
 Inverse of cppcolormap::YlGn.
 
array_type::tensor< double, 2 > cppcolormap::YlGnBu_r (size_t N=9)
 Inverse of cppcolormap::YlGnBu.
 
array_type::tensor< double, 2 > cppcolormap::YlOrRd_r (size_t N=9)
 Inverse of cppcolormap::YlOrRd.
 
array_type::tensor< double, 2 > cppcolormap::BrBG_r (size_t N=11)
 Inverse of cppcolormap::BrBG.
 
array_type::tensor< double, 2 > cppcolormap::PuOr_r (size_t N=11)
 Inverse of cppcolormap::PuOr.
 
array_type::tensor< double, 2 > cppcolormap::RdBu_r (size_t N=11)
 Inverse of cppcolormap::RdBu.
 
array_type::tensor< double, 2 > cppcolormap::RdGy_r (size_t N=11)
 Inverse of cppcolormap::RdGy.
 
array_type::tensor< double, 2 > cppcolormap::RdYlBu_r (size_t N=11)
 Inverse of cppcolormap::RdYlBu.
 
array_type::tensor< double, 2 > cppcolormap::RdYlGn_r (size_t N=11)
 Inverse of cppcolormap::RdYlGn.
 
array_type::tensor< double, 2 > cppcolormap::PiYG_r (size_t N=11)
 Inverse of cppcolormap::PiYG.
 
array_type::tensor< double, 2 > cppcolormap::PRGn_r (size_t N=11)
 Inverse of cppcolormap::PRGn.
 
array_type::tensor< double, 2 > cppcolormap::spring_r (size_t N=256)
 Inverse of cppcolormap::spring.
 
array_type::tensor< double, 2 > cppcolormap::summer_r (size_t N=256)
 Inverse of cppcolormap::summer.
 
array_type::tensor< double, 2 > cppcolormap::autumn_r (size_t N=256)
 Inverse of cppcolormap::autumn.
 
array_type::tensor< double, 2 > cppcolormap::winter_r (size_t N=256)
 Inverse of cppcolormap::winter.
 
array_type::tensor< double, 2 > cppcolormap::bone_r (size_t N=256)
 Inverse of cppcolormap::bone.
 
array_type::tensor< double, 2 > cppcolormap::cool_r (size_t N=256)
 Inverse of cppcolormap::cool.
 
array_type::tensor< double, 2 > cppcolormap::hot_r (size_t N=256)
 Inverse of cppcolormap::hot.
 
array_type::tensor< double, 2 > cppcolormap::copper_r (size_t N=256)
 Inverse of cppcolormap::copper.
 
array_type::tensor< double, 2 > cppcolormap::hsv_r (size_t N=256)
 Inverse of cppcolormap::hsv.
 
array_type::tensor< double, 2 > cppcolormap::nipy_spectral_r (size_t N=256)
 Inverse of cppcolormap::nipy_spectral.
 
array_type::tensor< double, 2 > cppcolormap::jet_r (size_t N=256)
 Inverse of cppcolormap::jet.
 
array_type::tensor< double, 2 > cppcolormap::terrain_r (size_t N=5)
 Inverse of cppcolormap::terrain.
 
array_type::tensor< double, 2 > cppcolormap::seismic_r (size_t N=6)
 Inverse of cppcolormap::seismic.
 
array_type::tensor< double, 2 > cppcolormap::afmhot_r (size_t N=256)
 Inverse of cppcolormap::afmhot.
 
array_type::tensor< double, 2 > cppcolormap::magma_r (size_t N=256)
 Inverse of cppcolormap::magma.
 
array_type::tensor< double, 2 > cppcolormap::inferno_r (size_t N=256)
 Inverse of cppcolormap::inferno.
 
array_type::tensor< double, 2 > cppcolormap::plasma_r (size_t N=256)
 Inverse of cppcolormap::plasma.
 
array_type::tensor< double, 2 > cppcolormap::viridis_r (size_t N=256)
 Inverse of cppcolormap::viridis.
 
array_type::tensor< double, 2 > cppcolormap::colormap (const std::string &cmap, size_t N=256)
 Get colormap specified as string.
 
array_type::tensor< double, 2 > cppcolormap::xterm ()
 xterm color-cyle.
 
array_type::tensor< double, 2 > cppcolormap::tue ()
 Eindhoven University of Technology color-cyle.
 
array_type::tensor< double, 2 > cppcolormap::xterm_r ()
 Inverse of cppcolormap::xterm.
 
array_type::tensor< double, 2 > cppcolormap::tue_r ()
 Inverse of cppcolormap::tue.
 
array_type::tensor< double, 2 > cppcolormap::colorcycle (const std::string &cmap)
 Get color-cycle specified as string.
 
array_type::tensor< size_t, 1 > cppcolormap::match (const array_type::tensor< double, 2 > &A, const array_type::tensor< double, 2 > &B, metric distance_metric=euclidean)
 Match colors.
 

Detailed Description

License: This project is released under the GPLv3 License.

Definition in file cppcolormap.h.

Macro Definition Documentation

◆ CPPCOLORMAP_ASSERT

#define CPPCOLORMAP_ASSERT (   expr)

All assertions are implementation as:

GMATTENSOR_ASSERT(...)

They can be enabled by:

#define GMATTENSOR_ENABLE_ASSERT

(before including GMatTensor). The advantage is that:

  • File and line-number are displayed if the assertion fails.
  • GMatTensor's assertions can be enabled/disabled independently from those of other libraries.
Exceptions
std::runtime_error

Definition at line 46 of file cppcolormap.h.

◆ CPPCOLORMAP_VERSION

#define CPPCOLORMAP_VERSION   "@PROJECT_VERSION@"

Current version.

Either:

  • Configure using CMake at install time. Internally uses::
    python -c "from setuptools_scm import get_version; print(get_version())"
    
  • Define externally using::
    MYVERSION=`python -c "from setuptools_scm import get_version; print(get_version())"`
    -DCPPCOLORMAP_VERSION="$MYVERSION"
    
    From the root of this project. This is what setup.py does.

Note that both CMakeLists.txt and setup.py will construct the version using setuptools_scm. Tip: use the environment variable SETUPTOOLS_SCM_PRETEND_VERSION to overwrite the automatic version.

Definition at line 70 of file cppcolormap.h.

Enumeration Type Documentation

◆ metric

Algorithm to use for color matching.

Enumerator
euclidean 

Euclidean norm.

fast_perceptual 

Fast best perception algorithm.

See: https://stackoverflow.com/a/1847112/2646505

perceptual 

Best perception algorithm. See: https://en.wikipedia.org/wiki/Color_difference.

Definition at line 5496 of file cppcolormap.h.

Function Documentation

◆ Accent()

array_type::tensor< double, 2 > cppcolormap::Accent ( size_t  N = 8)
inline

Qualitative colormap.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 406 of file cppcolormap.h.

◆ Accent_r()

array_type::tensor< double, 2 > cppcolormap::Accent_r ( size_t  N = 8)
inline

Inverse of cppcolormap::Accent.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 4041 of file cppcolormap.h.

◆ afmhot()

array_type::tensor< double, 2 > cppcolormap::afmhot ( size_t  N = 256)
inline

GNU plot colormap.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 2039 of file cppcolormap.h.

◆ afmhot_r()

array_type::tensor< double, 2 > cppcolormap::afmhot_r ( size_t  N = 256)
inline

Inverse of cppcolormap::afmhot.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 4558 of file cppcolormap.h.

◆ Apricot()

array_type::tensor< double, 2 > cppcolormap::Apricot ( size_t  N = 1)
inline

dvips color.

See: https://en.wikibooks.org/wiki/LaTeX/Colors

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 3273 of file cppcolormap.h.

◆ Aquamarine()

array_type::tensor< double, 2 > cppcolormap::Aquamarine ( size_t  N = 1)
inline

dvips color.

See: https://en.wikibooks.org/wiki/LaTeX/Colors

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 3285 of file cppcolormap.h.

◆ as_colors() [1/2]

template<class E , class C >
auto cppcolormap::as_colors ( const E &  data,
const C &  colors 
)
inline

Convert data to colors using a colormap.

Parameters
dataThe data.
colorsThe colormap, e.g. cppcolormap::jet().

Definition at line 395 of file cppcolormap.h.

◆ as_colors() [2/2]

template<class E , class C , typename S >
auto cppcolormap::as_colors ( const E &  data,
const C &  colors,
vmin,
vmax 
)
inline

Convert data to colors using a colormap.

Parameters
dataThe data.
colorsThe colormap, e.g. cppcolormap::jet().
vminThe lower limit of the color-axis.
vmaxThe upper limit of the color-axis.

Definition at line 383 of file cppcolormap.h.

◆ autumn()

array_type::tensor< double, 2 > cppcolormap::autumn ( size_t  N = 256)
inline

matplotlib colormap, from anchor.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 1358 of file cppcolormap.h.

◆ autumn_r()

array_type::tensor< double, 2 > cppcolormap::autumn_r ( size_t  N = 256)
inline

Inverse of cppcolormap::autumn.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 4437 of file cppcolormap.h.

◆ Bittersweet()

array_type::tensor< double, 2 > cppcolormap::Bittersweet ( size_t  N = 1)
inline

dvips color.

See: https://en.wikibooks.org/wiki/LaTeX/Colors

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 3297 of file cppcolormap.h.

◆ Black()

array_type::tensor< double, 2 > cppcolormap::Black ( size_t  N = 1)
inline

Monotone colormap.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 3189 of file cppcolormap.h.

◆ Blue()

array_type::tensor< double, 2 > cppcolormap::Blue ( size_t  N = 1)
inline

Monotone colormap.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 3213 of file cppcolormap.h.

◆ BlueGreen()

array_type::tensor< double, 2 > cppcolormap::BlueGreen ( size_t  N = 1)
inline

dvips color.

See: https://en.wikibooks.org/wiki/LaTeX/Colors

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 3309 of file cppcolormap.h.

◆ Blues()

array_type::tensor< double, 2 > cppcolormap::Blues ( size_t  N = 9)
inline

Sequential colormap.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 635 of file cppcolormap.h.

◆ Blues_r()

array_type::tensor< double, 2 > cppcolormap::Blues_r ( size_t  N = 9)
inline

Inverse of cppcolormap::Blues.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 4140 of file cppcolormap.h.

◆ BlueViolet()

array_type::tensor< double, 2 > cppcolormap::BlueViolet ( size_t  N = 1)
inline

dvips color.

See: https://en.wikibooks.org/wiki/LaTeX/Colors

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 3321 of file cppcolormap.h.

◆ bone()

array_type::tensor< double, 2 > cppcolormap::bone ( size_t  N = 256)
inline

matplotlib colormap, from anchor.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 1408 of file cppcolormap.h.

◆ bone_r()

array_type::tensor< double, 2 > cppcolormap::bone_r ( size_t  N = 256)
inline

Inverse of cppcolormap::bone.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 4459 of file cppcolormap.h.

◆ BrBG()

array_type::tensor< double, 2 > cppcolormap::BrBG ( size_t  N = 11)
inline

Diverging colormap.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 1053 of file cppcolormap.h.

◆ BrBG_r()

array_type::tensor< double, 2 > cppcolormap::BrBG_r ( size_t  N = 11)
inline

Inverse of cppcolormap::BrBG.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 4327 of file cppcolormap.h.

◆ BrickRed()

array_type::tensor< double, 2 > cppcolormap::BrickRed ( size_t  N = 1)
inline

dvips color.

See: https://en.wikibooks.org/wiki/LaTeX/Colors

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 3333 of file cppcolormap.h.

◆ Brown()

array_type::tensor< double, 2 > cppcolormap::Brown ( size_t  N = 1)
inline

dvips color.

See: https://en.wikibooks.org/wiki/LaTeX/Colors

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 3345 of file cppcolormap.h.

◆ BuPu()

array_type::tensor< double, 2 > cppcolormap::BuPu ( size_t  N = 9)
inline

Sequential colormap.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 778 of file cppcolormap.h.

◆ BuPu_r()

array_type::tensor< double, 2 > cppcolormap::BuPu_r ( size_t  N = 9)
inline

Inverse of cppcolormap::BuPu.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 4206 of file cppcolormap.h.

◆ BurntOrange()

array_type::tensor< double, 2 > cppcolormap::BurntOrange ( size_t  N = 1)
inline

dvips color.

See: https://en.wikibooks.org/wiki/LaTeX/Colors

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 3357 of file cppcolormap.h.

◆ CadetBlue()

array_type::tensor< double, 2 > cppcolormap::CadetBlue ( size_t  N = 1)
inline

dvips color.

See: https://en.wikibooks.org/wiki/LaTeX/Colors

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 3369 of file cppcolormap.h.

◆ CarnationPink()

array_type::tensor< double, 2 > cppcolormap::CarnationPink ( size_t  N = 1)
inline

dvips color.

See: https://en.wikibooks.org/wiki/LaTeX/Colors

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 3381 of file cppcolormap.h.

◆ Cerulean()

array_type::tensor< double, 2 > cppcolormap::Cerulean ( size_t  N = 1)
inline

dvips color.

See: https://en.wikibooks.org/wiki/LaTeX/Colors

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 3393 of file cppcolormap.h.

◆ colorcycle()

array_type::tensor< double, 2 > cppcolormap::colorcycle ( const std::string &  cmap)
inline

Get color-cycle specified as string.

Parameters
cmapName of the colormap.
Returns
RGB data.

Definition at line 5472 of file cppcolormap.h.

◆ colormap()

array_type::tensor< double, 2 > cppcolormap::colormap ( const std::string &  cmap,
size_t  N = 256 
)
inline

Get colormap specified as string.

Parameters
cmapName of the colormap.
NNumber of colors to output.
Returns
RGB data.

Definition at line 4614 of file cppcolormap.h.

◆ cool()

array_type::tensor< double, 2 > cppcolormap::cool ( size_t  N = 256)
inline

matplotlib colormap, from anchor.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 1437 of file cppcolormap.h.

◆ cool_r()

array_type::tensor< double, 2 > cppcolormap::cool_r ( size_t  N = 256)
inline

Inverse of cppcolormap::cool.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 4470 of file cppcolormap.h.

◆ copper()

array_type::tensor< double, 2 > cppcolormap::copper ( size_t  N = 256)
inline

matplotlib colormap, from anchor.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 1491 of file cppcolormap.h.

◆ copper_r()

array_type::tensor< double, 2 > cppcolormap::copper_r ( size_t  N = 256)
inline

Inverse of cppcolormap::copper.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 4492 of file cppcolormap.h.

◆ CornflowerBlue()

array_type::tensor< double, 2 > cppcolormap::CornflowerBlue ( size_t  N = 1)
inline

dvips color.

See: https://en.wikibooks.org/wiki/LaTeX/Colors

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 3405 of file cppcolormap.h.

◆ Cyan()

array_type::tensor< double, 2 > cppcolormap::Cyan ( size_t  N = 1)
inline

dvips color.

See: https://en.wikibooks.org/wiki/LaTeX/Colors

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 3417 of file cppcolormap.h.

◆ Dandelion()

array_type::tensor< double, 2 > cppcolormap::Dandelion ( size_t  N = 1)
inline

dvips color.

See: https://en.wikibooks.org/wiki/LaTeX/Colors

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 3429 of file cppcolormap.h.

◆ Dark2()

array_type::tensor< double, 2 > cppcolormap::Dark2 ( size_t  N = 8)
inline

Qualitative colormap.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 430 of file cppcolormap.h.

◆ Dark2_r()

array_type::tensor< double, 2 > cppcolormap::Dark2_r ( size_t  N = 8)
inline

Inverse of cppcolormap::Dark2.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 4052 of file cppcolormap.h.

◆ DarkOrchid()

array_type::tensor< double, 2 > cppcolormap::DarkOrchid ( size_t  N = 1)
inline

dvips color.

See: https://en.wikibooks.org/wiki/LaTeX/Colors

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 3441 of file cppcolormap.h.

◆ Emerald()

array_type::tensor< double, 2 > cppcolormap::Emerald ( size_t  N = 1)
inline

dvips color.

See: https://en.wikibooks.org/wiki/LaTeX/Colors

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 3453 of file cppcolormap.h.

◆ ForestGreen()

array_type::tensor< double, 2 > cppcolormap::ForestGreen ( size_t  N = 1)
inline

dvips color.

See: https://en.wikibooks.org/wiki/LaTeX/Colors

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 3465 of file cppcolormap.h.

◆ Fuchsia()

array_type::tensor< double, 2 > cppcolormap::Fuchsia ( size_t  N = 1)
inline

dvips color.

See: https://en.wikibooks.org/wiki/LaTeX/Colors

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 3477 of file cppcolormap.h.

◆ GnBu()

array_type::tensor< double, 2 > cppcolormap::GnBu ( size_t  N = 9)
inline

Sequential colormap.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 803 of file cppcolormap.h.

◆ GnBu_r()

array_type::tensor< double, 2 > cppcolormap::GnBu_r ( size_t  N = 9)
inline

Inverse of cppcolormap::GnBu.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 4217 of file cppcolormap.h.

◆ Goldenrod()

array_type::tensor< double, 2 > cppcolormap::Goldenrod ( size_t  N = 1)
inline

dvips color.

See: https://en.wikibooks.org/wiki/LaTeX/Colors

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 3489 of file cppcolormap.h.

◆ Gray()

array_type::tensor< double, 2 > cppcolormap::Gray ( size_t  N = 1)
inline

dvips color.

See: https://en.wikibooks.org/wiki/LaTeX/Colors

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 3501 of file cppcolormap.h.

◆ Green()

array_type::tensor< double, 2 > cppcolormap::Green ( size_t  N = 1)
inline

dvips color.

See: https://en.wikibooks.org/wiki/LaTeX/Colors

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 3513 of file cppcolormap.h.

◆ Greens()

array_type::tensor< double, 2 > cppcolormap::Greens ( size_t  N = 9)
inline

Sequential colormap.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 660 of file cppcolormap.h.

◆ Greens_r()

array_type::tensor< double, 2 > cppcolormap::Greens_r ( size_t  N = 9)
inline

Inverse of cppcolormap::Greens.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 4151 of file cppcolormap.h.

◆ GreenYellow()

array_type::tensor< double, 2 > cppcolormap::GreenYellow ( size_t  N = 1)
inline

dvips color.

See: https://en.wikibooks.org/wiki/LaTeX/Colors

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 3525 of file cppcolormap.h.

◆ Grey()

array_type::tensor< double, 2 > cppcolormap::Grey ( size_t  N = 1)
inline

Monotone colormap.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 3177 of file cppcolormap.h.

◆ Greys()

array_type::tensor< double, 2 > cppcolormap::Greys ( size_t  N = 2)
inline

Sequential colormap.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 685 of file cppcolormap.h.

◆ Greys_r()

array_type::tensor< double, 2 > cppcolormap::Greys_r ( size_t  N = 2)
inline

Inverse of cppcolormap::Greys.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 4162 of file cppcolormap.h.

◆ hex2rgb() [1/2]

array_type::tensor< double, 1 > cppcolormap::hex2rgb ( const std::string &  arg)

Convert HEX -> RGB.

Parameters
argHEX data.
Returns
RGB data.

Definition at line 281 of file cppcolormap.h.

◆ hex2rgb() [2/2]

array_type::tensor< double, 2 > cppcolormap::hex2rgb ( const std::vector< std::string > &  arg)

Convert HEX -> RGB.

Parameters
argHEX data.
Returns
RGB data.

Definition at line 264 of file cppcolormap.h.

◆ hot()

array_type::tensor< double, 2 > cppcolormap::hot ( size_t  N = 256)
inline

matplotlib colormap, from anchor.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 1462 of file cppcolormap.h.

◆ hot_r()

array_type::tensor< double, 2 > cppcolormap::hot_r ( size_t  N = 256)
inline

Inverse of cppcolormap::hot.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 4481 of file cppcolormap.h.

◆ hsv()

array_type::tensor< double, 2 > cppcolormap::hsv ( size_t  N = 256)
inline

matplotlib colormap, from anchor.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 1517 of file cppcolormap.h.

◆ hsv_r()

array_type::tensor< double, 2 > cppcolormap::hsv_r ( size_t  N = 256)
inline

Inverse of cppcolormap::hsv.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 4503 of file cppcolormap.h.

◆ inferno()

array_type::tensor< double, 2 > cppcolormap::inferno ( size_t  N = 256)
inline

matplotlib colormap.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 2328 of file cppcolormap.h.

◆ inferno_r()

array_type::tensor< double, 2 > cppcolormap::inferno_r ( size_t  N = 256)
inline

Inverse of cppcolormap::inferno.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 4580 of file cppcolormap.h.

◆ interp()

template<class T , class R = array_type::tensor<double, 2>>
R cppcolormap::interp ( const T &  arg,
size_t  N 
)
inline

Interpolate the individual colours.

Parameters
argRGB data.
NNumber of colors to output.
Returns
RGB data.

Definition at line 294 of file cppcolormap.h.

◆ jet()

array_type::tensor< double, 2 > cppcolormap::jet ( size_t  N = 256)
inline

matplotlib colormap, from anchor.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 1642 of file cppcolormap.h.

◆ jet_r()

array_type::tensor< double, 2 > cppcolormap::jet_r ( size_t  N = 256)
inline

Inverse of cppcolormap::jet.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 4525 of file cppcolormap.h.

◆ JungleGreen()

array_type::tensor< double, 2 > cppcolormap::JungleGreen ( size_t  N = 1)
inline

dvips color.

See: https://en.wikibooks.org/wiki/LaTeX/Colors

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 3537 of file cppcolormap.h.

◆ Lavender()

array_type::tensor< double, 2 > cppcolormap::Lavender ( size_t  N = 1)
inline

dvips color.

See: https://en.wikibooks.org/wiki/LaTeX/Colors

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 3549 of file cppcolormap.h.

◆ LimeGreen()

array_type::tensor< double, 2 > cppcolormap::LimeGreen ( size_t  N = 1)
inline

dvips color.

See: https://en.wikibooks.org/wiki/LaTeX/Colors

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 3561 of file cppcolormap.h.

◆ Magenta()

array_type::tensor< double, 2 > cppcolormap::Magenta ( size_t  N = 1)
inline

dvips color.

See: https://en.wikibooks.org/wiki/LaTeX/Colors

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 3573 of file cppcolormap.h.

◆ magma()

array_type::tensor< double, 2 > cppcolormap::magma ( size_t  N = 256)
inline

matplotlib colormap.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 2056 of file cppcolormap.h.

◆ magma_r()

array_type::tensor< double, 2 > cppcolormap::magma_r ( size_t  N = 256)
inline

Inverse of cppcolormap::magma.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 4569 of file cppcolormap.h.

◆ Mahogany()

array_type::tensor< double, 2 > cppcolormap::Mahogany ( size_t  N = 1)
inline

dvips color.

See: https://en.wikibooks.org/wiki/LaTeX/Colors

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 3585 of file cppcolormap.h.

◆ Maroon()

array_type::tensor< double, 2 > cppcolormap::Maroon ( size_t  N = 1)
inline

dvips color.

See: https://en.wikibooks.org/wiki/LaTeX/Colors

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 3597 of file cppcolormap.h.

◆ match()

array_type::tensor< size_t, 1 > cppcolormap::match ( const array_type::tensor< double, 2 > &  A,
const array_type::tensor< double, 2 > &  B,
metric  distance_metric = euclidean 
)
inline

Match colors.

Parameters
AList of colors.
BList of colors.
distance_metricMetric to use in color matching.
Returns
For each item in A, the index of the closets corresponding color in B.

Definition at line 5538 of file cppcolormap.h.

◆ Melon()

array_type::tensor< double, 2 > cppcolormap::Melon ( size_t  N = 1)
inline

dvips color.

See: https://en.wikibooks.org/wiki/LaTeX/Colors

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 3609 of file cppcolormap.h.

◆ MidnightBlue()

array_type::tensor< double, 2 > cppcolormap::MidnightBlue ( size_t  N = 1)
inline

dvips color.

See: https://en.wikibooks.org/wiki/LaTeX/Colors

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 3621 of file cppcolormap.h.

◆ Mulberry()

array_type::tensor< double, 2 > cppcolormap::Mulberry ( size_t  N = 1)
inline

dvips color.

See: https://en.wikibooks.org/wiki/LaTeX/Colors

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 3633 of file cppcolormap.h.

◆ NavyBlue()

array_type::tensor< double, 2 > cppcolormap::NavyBlue ( size_t  N = 1)
inline

dvips color.

See: https://en.wikibooks.org/wiki/LaTeX/Colors

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 3645 of file cppcolormap.h.

◆ nipy_spectral()

array_type::tensor< double, 2 > cppcolormap::nipy_spectral ( size_t  N = 256)
inline

matplotlib colormap, from anchor.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 1560 of file cppcolormap.h.

◆ nipy_spectral_r()

array_type::tensor< double, 2 > cppcolormap::nipy_spectral_r ( size_t  N = 256)
inline

Inverse of cppcolormap::nipy_spectral.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 4514 of file cppcolormap.h.

◆ OliveGreen()

array_type::tensor< double, 2 > cppcolormap::OliveGreen ( size_t  N = 1)
inline

dvips color.

See: https://en.wikibooks.org/wiki/LaTeX/Colors

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 3657 of file cppcolormap.h.

◆ Orange()

array_type::tensor< double, 2 > cppcolormap::Orange ( size_t  N = 1)
inline

dvips color.

See: https://en.wikibooks.org/wiki/LaTeX/Colors

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 3669 of file cppcolormap.h.

◆ OrangeRed()

array_type::tensor< double, 2 > cppcolormap::OrangeRed ( size_t  N = 1)
inline

dvips color.

See: https://en.wikibooks.org/wiki/LaTeX/Colors

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 3681 of file cppcolormap.h.

◆ Oranges()

array_type::tensor< double, 2 > cppcolormap::Oranges ( size_t  N = 9)
inline

Sequential colormap.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 703 of file cppcolormap.h.

◆ Oranges_r()

array_type::tensor< double, 2 > cppcolormap::Oranges_r ( size_t  N = 9)
inline

Inverse of cppcolormap::Oranges.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 4173 of file cppcolormap.h.

◆ Orchid()

array_type::tensor< double, 2 > cppcolormap::Orchid ( size_t  N = 1)
inline

dvips color.

See: https://en.wikibooks.org/wiki/LaTeX/Colors

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 3693 of file cppcolormap.h.

◆ OrRd()

array_type::tensor< double, 2 > cppcolormap::OrRd ( size_t  N = 9)
inline

Sequential colormap.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 928 of file cppcolormap.h.

◆ OrRd_r()

array_type::tensor< double, 2 > cppcolormap::OrRd_r ( size_t  N = 9)
inline

Inverse of cppcolormap::OrRd.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 4272 of file cppcolormap.h.

◆ Paired()

array_type::tensor< double, 2 > cppcolormap::Paired ( size_t  N = 12)
inline

Qualitative colormap.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 454 of file cppcolormap.h.

◆ Paired_r()

array_type::tensor< double, 2 > cppcolormap::Paired_r ( size_t  N = 12)
inline

Inverse of cppcolormap::Paired.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 4063 of file cppcolormap.h.

◆ Pastel1()

array_type::tensor< double, 2 > cppcolormap::Pastel1 ( size_t  N = 9)
inline

Qualitative colormap.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 509 of file cppcolormap.h.

◆ Pastel1_r()

array_type::tensor< double, 2 > cppcolormap::Pastel1_r ( size_t  N = 9)
inline

Inverse of cppcolormap::Pastel1.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 4085 of file cppcolormap.h.

◆ Pastel2()

array_type::tensor< double, 2 > cppcolormap::Pastel2 ( size_t  N = 8)
inline

Qualitative colormap.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 534 of file cppcolormap.h.

◆ Pastel2_r()

array_type::tensor< double, 2 > cppcolormap::Pastel2_r ( size_t  N = 8)
inline

Inverse of cppcolormap::Pastel2.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 4096 of file cppcolormap.h.

◆ Peach()

array_type::tensor< double, 2 > cppcolormap::Peach ( size_t  N = 1)
inline

dvips color.

See: https://en.wikibooks.org/wiki/LaTeX/Colors

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 3705 of file cppcolormap.h.

◆ Periwinkle()

array_type::tensor< double, 2 > cppcolormap::Periwinkle ( size_t  N = 1)
inline

dvips color.

See: https://en.wikibooks.org/wiki/LaTeX/Colors

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 3717 of file cppcolormap.h.

◆ PineGreen()

array_type::tensor< double, 2 > cppcolormap::PineGreen ( size_t  N = 1)
inline

dvips color.

See: https://en.wikibooks.org/wiki/LaTeX/Colors

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 3729 of file cppcolormap.h.

◆ PiYG()

array_type::tensor< double, 2 > cppcolormap::PiYG ( size_t  N = 11)
inline

Diverging colormap.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 1215 of file cppcolormap.h.

◆ PiYG_r()

array_type::tensor< double, 2 > cppcolormap::PiYG_r ( size_t  N = 11)
inline

Inverse of cppcolormap::PiYG.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 4393 of file cppcolormap.h.

◆ plasma()

array_type::tensor< double, 2 > cppcolormap::plasma ( size_t  N = 256)
inline

matplotlib colormap.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 2600 of file cppcolormap.h.

◆ plasma_r()

array_type::tensor< double, 2 > cppcolormap::plasma_r ( size_t  N = 256)
inline

Inverse of cppcolormap::plasma.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 4591 of file cppcolormap.h.

◆ Plum()

array_type::tensor< double, 2 > cppcolormap::Plum ( size_t  N = 1)
inline

dvips color.

See: https://en.wikibooks.org/wiki/LaTeX/Colors

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 3741 of file cppcolormap.h.

◆ PRGn()

array_type::tensor< double, 2 > cppcolormap::PRGn ( size_t  N = 11)
inline

Diverging colormap.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 1242 of file cppcolormap.h.

◆ PRGn_r()

array_type::tensor< double, 2 > cppcolormap::PRGn_r ( size_t  N = 11)
inline

Inverse of cppcolormap::PRGn.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 4404 of file cppcolormap.h.

◆ ProcessBlue()

array_type::tensor< double, 2 > cppcolormap::ProcessBlue ( size_t  N = 1)
inline

dvips color.

See: https://en.wikibooks.org/wiki/LaTeX/Colors

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 3753 of file cppcolormap.h.

◆ PuBu()

array_type::tensor< double, 2 > cppcolormap::PuBu ( size_t  N = 9)
inline

Sequential colormap.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 828 of file cppcolormap.h.

◆ PuBu_r()

array_type::tensor< double, 2 > cppcolormap::PuBu_r ( size_t  N = 9)
inline

Inverse of cppcolormap::PuBu.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 4228 of file cppcolormap.h.

◆ PuBuGn()

array_type::tensor< double, 2 > cppcolormap::PuBuGn ( size_t  N = 9)
inline

Sequential colormap.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 853 of file cppcolormap.h.

◆ PuBuGn_r()

array_type::tensor< double, 2 > cppcolormap::PuBuGn_r ( size_t  N = 9)
inline

Inverse of cppcolormap::PuBuGn.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 4239 of file cppcolormap.h.

◆ PuOr()

array_type::tensor< double, 2 > cppcolormap::PuOr ( size_t  N = 11)
inline

Diverging colormap.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 1080 of file cppcolormap.h.

◆ PuOr_r()

array_type::tensor< double, 2 > cppcolormap::PuOr_r ( size_t  N = 11)
inline

Inverse of cppcolormap::PuOr.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 4338 of file cppcolormap.h.

◆ PuRd()

array_type::tensor< double, 2 > cppcolormap::PuRd ( size_t  N = 9)
inline

Sequential colormap.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 878 of file cppcolormap.h.

◆ PuRd_r()

array_type::tensor< double, 2 > cppcolormap::PuRd_r ( size_t  N = 9)
inline

Inverse of cppcolormap::PuRd.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 4250 of file cppcolormap.h.

◆ Purple()

array_type::tensor< double, 2 > cppcolormap::Purple ( size_t  N = 1)
inline

dvips color.

See: https://en.wikibooks.org/wiki/LaTeX/Colors

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 3765 of file cppcolormap.h.

◆ Purples()

array_type::tensor< double, 2 > cppcolormap::Purples ( size_t  N = 9)
inline

Sequential colormap.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 728 of file cppcolormap.h.

◆ Purples_r()

array_type::tensor< double, 2 > cppcolormap::Purples_r ( size_t  N = 9)
inline

Inverse of cppcolormap::Purples.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 4184 of file cppcolormap.h.

◆ RawSienna()

array_type::tensor< double, 2 > cppcolormap::RawSienna ( size_t  N = 1)
inline

dvips color.

See: https://en.wikibooks.org/wiki/LaTeX/Colors

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 3777 of file cppcolormap.h.

◆ RdBu()

array_type::tensor< double, 2 > cppcolormap::RdBu ( size_t  N = 11)
inline

Diverging colormap.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 1107 of file cppcolormap.h.

◆ RdBu_r()

array_type::tensor< double, 2 > cppcolormap::RdBu_r ( size_t  N = 11)
inline

Inverse of cppcolormap::RdBu.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 4349 of file cppcolormap.h.

◆ RdGy()

array_type::tensor< double, 2 > cppcolormap::RdGy ( size_t  N = 11)
inline

Diverging colormap.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 1134 of file cppcolormap.h.

◆ RdGy_r()

array_type::tensor< double, 2 > cppcolormap::RdGy_r ( size_t  N = 11)
inline

Inverse of cppcolormap::RdGy.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 4360 of file cppcolormap.h.

◆ RdOrYl()

array_type::tensor< double, 2 > cppcolormap::RdOrYl ( size_t  N = 9)
inline

Sequential colormap.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 953 of file cppcolormap.h.

◆ RdOrYl_r()

array_type::tensor< double, 2 > cppcolormap::RdOrYl_r ( size_t  N = 9)
inline

Inverse of cppcolormap::RdOrYl.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 4283 of file cppcolormap.h.

◆ RdPu()

array_type::tensor< double, 2 > cppcolormap::RdPu ( size_t  N = 9)
inline

Sequential colormap.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 903 of file cppcolormap.h.

◆ RdPu_r()

array_type::tensor< double, 2 > cppcolormap::RdPu_r ( size_t  N = 9)
inline

Inverse of cppcolormap::RdPu.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 4261 of file cppcolormap.h.

◆ RdYlBu()

array_type::tensor< double, 2 > cppcolormap::RdYlBu ( size_t  N = 11)
inline

Diverging colormap.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 1161 of file cppcolormap.h.

◆ RdYlBu_r()

array_type::tensor< double, 2 > cppcolormap::RdYlBu_r ( size_t  N = 11)
inline

Inverse of cppcolormap::RdYlBu.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 4371 of file cppcolormap.h.

◆ RdYlGn()

array_type::tensor< double, 2 > cppcolormap::RdYlGn ( size_t  N = 11)
inline

Diverging colormap.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 1188 of file cppcolormap.h.

◆ RdYlGn_r()

array_type::tensor< double, 2 > cppcolormap::RdYlGn_r ( size_t  N = 11)
inline

Inverse of cppcolormap::RdYlGn.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 4382 of file cppcolormap.h.

◆ Red()

array_type::tensor< double, 2 > cppcolormap::Red ( size_t  N = 1)
inline

Monotone colormap.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 3201 of file cppcolormap.h.

◆ RedOrange()

array_type::tensor< double, 2 > cppcolormap::RedOrange ( size_t  N = 1)
inline

dvips color.

See: https://en.wikibooks.org/wiki/LaTeX/Colors

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 3789 of file cppcolormap.h.

◆ Reds()

array_type::tensor< double, 2 > cppcolormap::Reds ( size_t  N = 9)
inline

Sequential colormap.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 753 of file cppcolormap.h.

◆ Reds_r()

array_type::tensor< double, 2 > cppcolormap::Reds_r ( size_t  N = 9)
inline

Inverse of cppcolormap::Reds.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 4195 of file cppcolormap.h.

◆ RedViolet()

array_type::tensor< double, 2 > cppcolormap::RedViolet ( size_t  N = 1)
inline

dvips color.

See: https://en.wikibooks.org/wiki/LaTeX/Colors

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 3801 of file cppcolormap.h.

◆ rgb2hex() [1/2]

template<class T , typename std::enable_if_t< xt::get_rank< T >::value !=1, int > = 0>
std::vector< std::string > cppcolormap::rgb2hex ( const T &  arg)

Convert RGB -> HEX.

Parameters
argRGB data (values between 0 and 1).
Returns
Vector of strings.

Definition at line 220 of file cppcolormap.h.

◆ rgb2hex() [2/2]

template<class T , typename std::enable_if_t< xt::get_rank< T >::value==1, int > = 0>
std::string cppcolormap::rgb2hex ( const T &  arg)

Convert RGB -> HEX.

Parameters
argRGB data (values between 0 and 1).
Returns
String.

Definition at line 246 of file cppcolormap.h.

◆ Rhodamine()

array_type::tensor< double, 2 > cppcolormap::Rhodamine ( size_t  N = 1)
inline

dvips color.

See: https://en.wikibooks.org/wiki/LaTeX/Colors

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 3813 of file cppcolormap.h.

◆ RoyalBlue()

array_type::tensor< double, 2 > cppcolormap::RoyalBlue ( size_t  N = 1)
inline

dvips color.

See: https://en.wikibooks.org/wiki/LaTeX/Colors

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 3825 of file cppcolormap.h.

◆ RoyalPurple()

array_type::tensor< double, 2 > cppcolormap::RoyalPurple ( size_t  N = 1)
inline

dvips color.

See: https://en.wikibooks.org/wiki/LaTeX/Colors

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 3837 of file cppcolormap.h.

◆ RubineRed()

array_type::tensor< double, 2 > cppcolormap::RubineRed ( size_t  N = 1)
inline

dvips color.

See: https://en.wikibooks.org/wiki/LaTeX/Colors

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 3849 of file cppcolormap.h.

◆ Salmon()

array_type::tensor< double, 2 > cppcolormap::Salmon ( size_t  N = 1)
inline

dvips color.

See: https://en.wikibooks.org/wiki/LaTeX/Colors

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 3861 of file cppcolormap.h.

◆ SeaGreen()

array_type::tensor< double, 2 > cppcolormap::SeaGreen ( size_t  N = 1)
inline

dvips color.

See: https://en.wikibooks.org/wiki/LaTeX/Colors

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 3873 of file cppcolormap.h.

◆ seismic()

array_type::tensor< double, 2 > cppcolormap::seismic ( size_t  N = 5)
inline

matplotlib colormap.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 3144 of file cppcolormap.h.

◆ seismic_r()

array_type::tensor< double, 2 > cppcolormap::seismic_r ( size_t  N = 6)
inline

Inverse of cppcolormap::seismic.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 4547 of file cppcolormap.h.

◆ Sepia()

array_type::tensor< double, 2 > cppcolormap::Sepia ( size_t  N = 1)
inline

dvips color.

See: https://en.wikibooks.org/wiki/LaTeX/Colors

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 3885 of file cppcolormap.h.

◆ Set1()

array_type::tensor< double, 2 > cppcolormap::Set1 ( size_t  N = 9)
inline

Qualitative colormap.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 558 of file cppcolormap.h.

◆ Set1_r()

array_type::tensor< double, 2 > cppcolormap::Set1_r ( size_t  N = 9)
inline

Inverse of cppcolormap::Set1.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 4107 of file cppcolormap.h.

◆ Set2()

array_type::tensor< double, 2 > cppcolormap::Set2 ( size_t  N = 8)
inline

Qualitative colormap.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 583 of file cppcolormap.h.

◆ Set2_r()

array_type::tensor< double, 2 > cppcolormap::Set2_r ( size_t  N = 8)
inline

Inverse of cppcolormap::Set2.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 4118 of file cppcolormap.h.

◆ Set3()

array_type::tensor< double, 2 > cppcolormap::Set3 ( size_t  N = 12)
inline

Qualitative colormap.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 607 of file cppcolormap.h.

◆ Set3_r()

array_type::tensor< double, 2 > cppcolormap::Set3_r ( size_t  N = 12)
inline

Inverse of cppcolormap::Set3.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 4129 of file cppcolormap.h.

◆ SkyBlue()

array_type::tensor< double, 2 > cppcolormap::SkyBlue ( size_t  N = 1)
inline

dvips color.

See: https://en.wikibooks.org/wiki/LaTeX/Colors

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 3897 of file cppcolormap.h.

◆ Spectral()

array_type::tensor< double, 2 > cppcolormap::Spectral ( size_t  N = 11)
inline

Qualitative colormap.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 482 of file cppcolormap.h.

◆ Spectral_r()

array_type::tensor< double, 2 > cppcolormap::Spectral_r ( size_t  N = 11)
inline

Inverse of cppcolormap::Spectral.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 4074 of file cppcolormap.h.

◆ spring()

array_type::tensor< double, 2 > cppcolormap::spring ( size_t  N = 256)
inline

matplotlib colormap, from anchor.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 1308 of file cppcolormap.h.

◆ spring_r()

array_type::tensor< double, 2 > cppcolormap::spring_r ( size_t  N = 256)
inline

Inverse of cppcolormap::spring.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 4415 of file cppcolormap.h.

◆ SpringGreen()

array_type::tensor< double, 2 > cppcolormap::SpringGreen ( size_t  N = 1)
inline

dvips color.

See: https://en.wikibooks.org/wiki/LaTeX/Colors

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 3909 of file cppcolormap.h.

◆ summer()

array_type::tensor< double, 2 > cppcolormap::summer ( size_t  N = 256)
inline

matplotlib colormap, from anchor.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 1333 of file cppcolormap.h.

◆ summer_r()

array_type::tensor< double, 2 > cppcolormap::summer_r ( size_t  N = 256)
inline

Inverse of cppcolormap::summer.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 4426 of file cppcolormap.h.

◆ Tan()

array_type::tensor< double, 2 > cppcolormap::Tan ( size_t  N = 1)
inline

dvips color.

See: https://en.wikibooks.org/wiki/LaTeX/Colors

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 3921 of file cppcolormap.h.

◆ TealBlue()

array_type::tensor< double, 2 > cppcolormap::TealBlue ( size_t  N = 1)
inline

dvips color.

See: https://en.wikibooks.org/wiki/LaTeX/Colors

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 3933 of file cppcolormap.h.

◆ terrain()

array_type::tensor< double, 2 > cppcolormap::terrain ( size_t  N = 6)
inline

matplotlib colormap, from fraction.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 1701 of file cppcolormap.h.

◆ terrain_r()

array_type::tensor< double, 2 > cppcolormap::terrain_r ( size_t  N = 5)
inline

Inverse of cppcolormap::terrain.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 4536 of file cppcolormap.h.

◆ Thistle()

array_type::tensor< double, 2 > cppcolormap::Thistle ( size_t  N = 1)
inline

dvips color.

See: https://en.wikibooks.org/wiki/LaTeX/Colors

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 3945 of file cppcolormap.h.

◆ tue()

array_type::tensor< double, 2 > cppcolormap::tue ( )
inline

Eindhoven University of Technology color-cyle.

Returns
RGB data.

Definition at line 5425 of file cppcolormap.h.

◆ tue_r()

array_type::tensor< double, 2 > cppcolormap::tue_r ( )
inline

Inverse of cppcolormap::tue.

Returns
RGB data.

Definition at line 5461 of file cppcolormap.h.

◆ tueblue()

array_type::tensor< double, 2 > cppcolormap::tueblue ( size_t  N = 1)
inline

Eindhoven University of Technology.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 3249 of file cppcolormap.h.

◆ tuedarkblue()

array_type::tensor< double, 2 > cppcolormap::tuedarkblue ( size_t  N = 1)
inline

Eindhoven University of Technology.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 3237 of file cppcolormap.h.

◆ tuelightblue()

array_type::tensor< double, 2 > cppcolormap::tuelightblue ( size_t  N = 1)
inline

Eindhoven University of Technology.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 3261 of file cppcolormap.h.

◆ tuewarmred()

array_type::tensor< double, 2 > cppcolormap::tuewarmred ( size_t  N = 1)
inline

Eindhoven University of Technology.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 3225 of file cppcolormap.h.

◆ Turquoise()

array_type::tensor< double, 2 > cppcolormap::Turquoise ( size_t  N = 1)
inline

dvips color.

See: https://en.wikibooks.org/wiki/LaTeX/Colors

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 3957 of file cppcolormap.h.

◆ version()

std::string cppcolormap::version ( )
inline

Return version string.

E.g.: "0.1.0".

Returns
String.

Definition at line 137 of file cppcolormap.h.

◆ version_dependencies()

std::vector< std::string > cppcolormap::version_dependencies ( )
inline

Return versions of this library and of all of its dependencies.

The output is a list of strings, e.g.

"cppcolormap=1.0.0",
"xtensor=0.20.1"
...
Returns
List of strings.

Definition at line 152 of file cppcolormap.h.

◆ Violet()

array_type::tensor< double, 2 > cppcolormap::Violet ( size_t  N = 1)
inline

dvips color.

See: https://en.wikibooks.org/wiki/LaTeX/Colors

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 3969 of file cppcolormap.h.

◆ VioletRed()

array_type::tensor< double, 2 > cppcolormap::VioletRed ( size_t  N = 1)
inline

dvips color.

See: https://en.wikibooks.org/wiki/LaTeX/Colors

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 3981 of file cppcolormap.h.

◆ viridis()

array_type::tensor< double, 2 > cppcolormap::viridis ( size_t  N = 256)
inline

matplotlib colormap.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 2872 of file cppcolormap.h.

◆ viridis_r()

array_type::tensor< double, 2 > cppcolormap::viridis_r ( size_t  N = 256)
inline

Inverse of cppcolormap::viridis.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 4602 of file cppcolormap.h.

◆ White()

array_type::tensor< double, 2 > cppcolormap::White ( size_t  N = 1)
inline

Monotone colormap.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 3165 of file cppcolormap.h.

◆ WildStrawberry()

array_type::tensor< double, 2 > cppcolormap::WildStrawberry ( size_t  N = 1)
inline

dvips color.

See: https://en.wikibooks.org/wiki/LaTeX/Colors

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 3993 of file cppcolormap.h.

◆ winter()

array_type::tensor< double, 2 > cppcolormap::winter ( size_t  N = 256)
inline

matplotlib colormap, from anchor.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 1383 of file cppcolormap.h.

◆ winter_r()

array_type::tensor< double, 2 > cppcolormap::winter_r ( size_t  N = 256)
inline

Inverse of cppcolormap::winter.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 4448 of file cppcolormap.h.

◆ xterm()

array_type::tensor< double, 2 > cppcolormap::xterm ( )
inline

xterm color-cyle.

Returns
RGB data.

Definition at line 5156 of file cppcolormap.h.

◆ xterm_r()

array_type::tensor< double, 2 > cppcolormap::xterm_r ( )
inline

Inverse of cppcolormap::xterm.

Returns
RGB data.

Definition at line 5451 of file cppcolormap.h.

◆ Yellow()

array_type::tensor< double, 2 > cppcolormap::Yellow ( size_t  N = 1)
inline

dvips color.

See: https://en.wikibooks.org/wiki/LaTeX/Colors

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 4005 of file cppcolormap.h.

◆ YellowGreen()

array_type::tensor< double, 2 > cppcolormap::YellowGreen ( size_t  N = 1)
inline

dvips color.

See: https://en.wikibooks.org/wiki/LaTeX/Colors

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 4017 of file cppcolormap.h.

◆ YellowOrange()

array_type::tensor< double, 2 > cppcolormap::YellowOrange ( size_t  N = 1)
inline

dvips color.

See: https://en.wikibooks.org/wiki/LaTeX/Colors

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 4029 of file cppcolormap.h.

◆ YlGn()

array_type::tensor< double, 2 > cppcolormap::YlGn ( size_t  N = 9)
inline

Sequential colormap.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 978 of file cppcolormap.h.

◆ YlGn_r()

array_type::tensor< double, 2 > cppcolormap::YlGn_r ( size_t  N = 9)
inline

Inverse of cppcolormap::YlGn.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 4294 of file cppcolormap.h.

◆ YlGnBu()

array_type::tensor< double, 2 > cppcolormap::YlGnBu ( size_t  N = 9)
inline

Sequential colormap.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 1003 of file cppcolormap.h.

◆ YlGnBu_r()

array_type::tensor< double, 2 > cppcolormap::YlGnBu_r ( size_t  N = 9)
inline

Inverse of cppcolormap::YlGnBu.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 4305 of file cppcolormap.h.

◆ YlOrRd()

array_type::tensor< double, 2 > cppcolormap::YlOrRd ( size_t  N = 9)
inline

Sequential colormap.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 1028 of file cppcolormap.h.

◆ YlOrRd_r()

array_type::tensor< double, 2 > cppcolormap::YlOrRd_r ( size_t  N = 9)
inline

Inverse of cppcolormap::YlOrRd.

Parameters
NNumber of colors to output.
Returns
RGB data.

Definition at line 4316 of file cppcolormap.h.