Use the cubehelix algorithm to generate colormaps suitable for grayscale conversion
Exchange](https://www.mathworks.com/matlabcentral/images/matlab-file-exchange.svg)](https://www.mathworks.com/matlabcentral/fileexchange/43700)[](https://matlab.mathworks.com/open/github/v1?repo=DrosteEffect/CubeHelix)CUBEHELIX generates colormaps
- 4.5K (All time)
- 6 (Last 30 days)
- 4.9 / 5
- Community
-
31 Mar 2026
RedBlue Colormap Generator with Zero as White or Black
A colormap generator to display positive values as blue and negative values as red. Zero is displayed as either white or black.
Generates a RED-BLUE colormap with zero as white or black. Positive values are displayed as blue intensities and negative values are displayed as red intensities. Zero can be selected to be either
- 1.7K (All time)
- 6 (Last 30 days)
- 5.0 / 5
- Community
-
4 May 2020
colorGradient: generate custom linear colormaps
COLORGRADIENT allows you to generate a linear color gradient from color A to color B.
User can generate a custom linear colormap giving 2 colors and colormap depth.Colors are given as vectors with RGB values. The suggested input method is using intensity values for each channel (0,1
- 3.5K (All time)
- 3 (Last 30 days)
- 4.9 / 5
- Community
-
22 May 2011
Maximally Distinct Color Generator
Generate maximally-distinct colors in an RGB colormap.
MAXDISTCOLOR generates an RGB colormap of maximally-distinct colors. The distance between the colors is measured in a perceptually uniform colorspace, which by default is OKLab
- 2.3K (All time)
- 28 (Last 30 days)
- 5.0 / 5
- Community
-
19 Aug 2026
HCPARULA: High Contrast Parula-like Colormap Generator
A Monotonic and Linear Grayscale Intensity Colormap with an Increased Contrast
High Contrast Parula-like Colormap GeneratorAuthor: Yong Hoon Lee (http://yonghoonlee.com, ylee196@illinois.edu)This is a monotonic and linear grayscale intensity colormap with an increased contrast
- 162 (All time)
- 3 (Last 30 days)
- -- / 5
- Community
-
26 Feb 2017
Creates a colormap using two boundary colors and one center color
, upload to current figure using: colormap(gca,newColormapName). Please see function text (comments) for further description and example usage. Very simple colormap generator, but please let me know if any
- 416 (All time)
- 1 (Last 30 days)
- 5.0 / 5
- Community
-
11 Mar 2019
Sound Field Synthesis Toolbox for Matlab/Octave, see http://matlab.sfstoolbox.org
- 511 (All time)
- 3 (Last 30 days)
- -- / 5
- Community
-
23 Oct 2020
multigradient: custom gradient colormap
An adjustable multiple-colour gradient colour map generator / editor for MATLAB, with presets.
This script allows you to generate a colour scale (as for colormap, colorbar) using any number of custom colours, and allows you to arrange these colours by adjusting their relative positions with
- 804 (All time)
- 4 (Last 30 days)
- -- / 5
- Community
-
12 Jan 2021
A colormap from bright blue, through white, and then to bright red.
REDBLUE(M), is an M-by-3 matrix that defines a colormap.The colors begin with bright blue, range through shades of blue to white, and then through shades of red to bright red. REDBLUE, by itself, is
- 23.4K (All time)
- 54 (Last 30 days)
- 5.0 / 5
- Community
-
9 Oct 2009
200 commonly used colormaps from matplotlab, scicomap, cmasher.
: Scientific colormaps for Python. https://github.com/ThomasBury/scicomapvan der Velden, E. (2020). CMasher: Scientific colormaps for Python. https://cmasher.readthedocs.io/Crameri, F. (2018). Scientific colour
- 15K (All time)
- 206 (Last 30 days)
- 4.8 / 5
- Community
-
18 Jun 2026
This function is able to define a customized colormap given the positions and the colors that are required to make the gradients.
', 'pink-white-green', 'brown-white-pool'.Example of use:J = customcolormap([0 0.5 1], {'#ffffff','#ff0000','#000000'});colorbar; colormap(J); axis off;
- 8.5K (All time)
- 24 (Last 30 days)
- 5.0 / 5
- Community
-
11 Sep 2019
ColorBrewer: Attractive and Distinctive Colormaps
The complete palette of ColorBrewer colormaps. Simple selection by scheme name and map length.
ColorBrewer 2.0 colorschemes for MATLAB, with simple selection by colormap length and scheme name. Alternatively the scheme name can be preselected, after which only the colormap length is required to define an
- 31K (All time)
- 98 (Last 30 days)
- 4.9 / 5
- Community
-
30 Mar 2026
cmocean perceptually-uniform colormaps
Perceptually-uniform colormaps inspired by oceanography
These colormaps were developed by Kristen Thyng using viscm. They are perceptually uniform, as color should be when it serves as a numeric axis. If these colormaps are useful for you, please consider
- 16.3K (All time)
- 113 (Last 30 days)
- 5.0 / 5
- Community
-
7 Sep 2021
crameri perceptually uniform scientific colormaps
Perceptually uniform scientific colormaps from Fabio Crameri.
AboutA simple Matlab function for Fabio Crameri's perceptually uniform scientific colormaps.Usagecrameri without any inputs displays the options for colormaps.crameri ColormapName sets the colormap
- 6.2K (All time)
- 99 (Last 30 days)
- 5.0 / 5
- Community
-
12 Nov 2022
Perceptually uniform colormaps
New Improved colormaps taken from python.
Perceptually uniform colormaps adds 4 new colormaps that are:1) Perceptually uniform (delta color is equal in all delta data)2) Colorblind friendly3) Good at grayscale conversion4) Pretty!Colormaps
- 15.6K (All time)
- 49 (Last 30 days)
- 4.9 / 5
- Community
-
2 Oct 2019
COLORMAP and COLORBAR utilities (Jul 2014)
MATLAB color utilities including COLORMAP join and interpolation; freeze and fit COLORBAR, etc.
These are some utilities that improve the COLORMAP and COLORBAR functions. They are as follows, and each one includes help and examples: COLORMAP utilites:cmapping - Colormap linear
- 24.3K (All time)
- 2 (Last 30 days)
- 4.5 / 5
- Community
-
3 Jul 2014
Perceptually improved colormaps
7 perceptual colormaps with rainbow-like colors and 1 with heat colors
PMKMP Returns perceptually balanced colormaps PMKMP(N,SCHEME) returns an Nx3 colormap. usage: map=pmkmp(n,scheme);%% Example1: 128-color rainbow with cubic-law luminance (default) load mandrill
- 8.7K (All time)
- 2 (Last 30 days)
- 5.0 / 5
- Community
-
14 Nov 2014
Jet-based colormap that contains white in its middle point.
This function defines a new colormap with the same colors that "jet", but it also replaces the green tones with white ones. This is specially useful when a signed metric is depicted, and its null
- 1.2K (All time)
- 2 (Last 30 days)
- 5.0 / 5
- Community
-
21 May 2018
Colormap that linearly varies between red (+) white (=0) and blue(-)
This is a diverging colormap that linearly varies between red (+) white (=0) and blue(-).Just observe the figure
- 1.3K (All time)
- 11 (Last 30 days)
- 5.0 / 5
- Community
-
4 Feb 2021
MatPlotLib "Perceptually Uniform" Colormaps
MatPlotLib's default linear lightness colormap VIRIDIS and distinctive line colororder TAB10
From MatPlotLib 2 and 3:the default sequential colormap VIRIDIS (as well as INFERNO, MAGMA, and PLASMA),the default line colororder TAB10 (as well as TAB20, TAB20B, and TAB20C),the cyclic colormaps
- 8.5K (All time)
- 116 (Last 30 days)
- 4.9 / 5
- Community
-
12 Mar 2026
Buillds any sequence of colormaps based on wrgbcmyk colors
This function can be used to build your own custom colormaps. Imagine if you want to display rainfall distribution map. You want a colormap which ideally brings rainfall in mind, which is not
- 3.5K (All time)
- 4 (Last 30 days)
- 4.9 / 5
- Community
-
14 Feb 2013
Superimpose multiple semitransparent images with individual colormaps on the current axis.
Remaps CData for multiple images, plotted in the current axis, to their respective individual colormaps. Multiple examples provided. The examples also demonstrate how semitransparent effects can be
- 1.2K (All time)
- 1 (Last 30 days)
- 5.0 / 5
- Community
-
3 Mar 2012
Colormap with zero-center white shading.
When representing "polarized" data for which zero and sign are meaningful (like for instance, a gravity anomalies map), it is useful to have a colormap where white stands for zero value, and greater
- 3K (All time)
- 4 (Last 30 days)
- 5.0 / 5
- Community
-
13 Jun 2012
Adaptive Colormap Function Creates a Colormap Specific to Data
Easily design and fit a colormap to the values in your data!
Tristan Ursell Nov 2013 Adaptive colormap rgbslide(mat_in,...) slide_map = rgbslide(...); This function creates, on the fly, an active / adaptive colormap for the data given by the matrix
- 989 (All time)
- 1 (Last 30 days)
- 5.0 / 5
- Community
-
29 Oct 2013
A collection of colormaps from https://matplotlib.org/cmocean/
A collection of perceptually uniform colormaps copied from https://matplotlib.org/cmocean/To set the colormap, use "colormap(Colormap.[mapname])"The [mapname] matches the names given in the original
- 1.2K (All time)
- 9 (Last 30 days)
- 5.0 / 5
- Community
-
24 Jul 2019
contourfcmap: filled contour plot with precise colormap
Creates a filled contour plot, with more precise control over colors than contourf.
# contourfcmap.m: filled contour plot with precise colormap[![View contourfcmap: filled contour plot with precise colormap on File
- 5.5K (All time)
- 2 (Last 30 days)
- 4.8 / 5
- Community
-
9 Aug 2024
Performs advaced colormap operations
ADVANCEDCOLORMAP Performs advaced colormap operationscmap = AdvancedColormap; Returns current colormap, much like COLORMAP does, but new figure is not createdcmaps =
- 2.8K (All time)
- 1 (Last 30 days)
- 5.0 / 5
- Community
-
1 May 2013
Symmetric/diverging/bipolar cold-neutral-hot colormap
colormap with a linear intensity/luminance variation when results are converted to grayscale. This requires the neutral gray-level to be 0.5.
- 3.6K (All time)
- 2 (Last 30 days)
- 5.0 / 5
- Community
-
11 Dec 2009
A colormap that attempts to be color blind friendly
- 2.5K (All time)
- 9 (Last 30 days)
- 5.0 / 5
- Community
-
30 May 2014
Diverging Redblue colormap from Tecplot
Generates the diverging redblue colormap from Tecplot. I needed a few times to display independent color bars on papers using tecplot charts
Generates the diverging redblue colormap from Tecplot. I needed a few times to display independent color bars on papers using tecplot charts.Inspired by
- 506 (All time)
- 4 (Last 30 days)
- 5.0 / 5
- Community
-
30 Nov 2018
Colormaps from NCAR Command Language (NCL).
Acknowledgement & Source: All colormap data in this file are sourced from NCAR Command Language (NCL) Website: https://www.ncl.ucar.edu/Document/Graphics/color_tables.shtmlList for
- 1.1K (All time)
- 12 (Last 30 days)
- 5.0 / 5
- Community
-
21 Jun 2026
Colormap in blue, white and red.
- 2.6K (All time)
- 1 (Last 30 days)
- 5.0 / 5
- Community
-
16 Mar 2006
Returns a colormap for visualizing gene expression.
a simple function that returns a colormap, C, for visualizing gene expression. C is just a N x 3 matrix [R G B] describing the range of color values.example usage: C =
- 2.6K (All time)
- 1 (Last 30 days)
- 5.0 / 5
- Community
-
9 Dec 2004
COLORMAPS3C lets you create your own colormaps.
COLORMAPS3C is able to create a custom colormap by specifying the 3 colors that you want to use in your colormap. The first will be at the bottom of the scale, the second will be the intermediate and
- 1.5K (All time)
- 1 (Last 30 days)
- 5.0 / 5
- Community
-
19 May 2004
Matlab colormaps as seen by color-blind users
This image provides simulations of how the standard Matlab colormaps look to color-blind users.
The choice of colormaps for data visualization can affect the information accessible to color-blind users. For example large patches of cyan in an image with a bitonal cyan-magenta colormap (Matlab
- 2.4K (All time)
- 3 (Last 30 days)
- 5.0 / 5
- Community
-
3 Aug 2011
Beautiful and distinguishable line colors + colormap
Plot lots of lines with very distinguishable and aesthetically pleasing colors. Works for 'N' colors
The default Matlab default line spec and colormaps are astoundingly crude. This function creates distinguishable colors by spacing them out ~equally in *perceptive* space, not in RGB space. It is
- 28.4K (All time)
- 31 (Last 30 days)
- 4.9 / 5
- Community
-
16 Sep 2015
A simple tool for creating attractive and perceptually smooth colormaps
This tool simplifies the creation of perceptually linear and/or smooth colormaps for data visualization. The tool works by using palette colors selected by the user and performing all interpolations
- 19 (All time)
- 3 (Last 30 days)
- 5.0 / 5
- Community
-
23 Jun 2023
Chaotic generators demo can be used for studying the behavior of chaotic generators.
be called: 1. 2D attractor2. time and frequency domain 3. bifurcation diagram 4. histogram 5. bicoherenceFrom each tool a chaotic generator can be selected and its behavior studied. The chaotic
- 11.2K (All time)
- 3 (Last 30 days)
- 4.3 / 5
- Community
-
22 Apr 2013
Fire and/or Custom Colormap Function
Use the 'fire' colormap in Matlab, or create your own.
FIRE Blue-Purple Hot colormapFIRE(M) returns an M-by-3 matrix containing a "fire" colormap.FIRE, by itself, is the same length as the current figure's colormap. If no figure exists, MATLAB creates
- 1.5K (All time)
- 2 (Last 30 days)
- 5.0 / 5
- Community
-
19 Mar 2012
Lattice generator program in STL format for additive manufacturing
The Lattice Generator is a simple MatLab program that automatically generates various lattice geometries direct to STL format. These periodic structures are intended for use with the metallic
- 5.2K (All time)
- 15 (Last 30 days)
- 5.0 / 5
- Community
-
27 Jan 2015
ColormapsNc lets you create your own colormaps (up to 256 colors).
ColormapsNc lets you create your own colormaps (up to 256 colors).ColormapsNc is able to create a custom colormap by specifying up to 256 different colors. The colors will be shown in the order you
- 3.8K (All time)
- 1 (Last 30 days)
- 5.0 / 5
- Community
-
3 Jun 2004
Standard-Climate-Colormaps-for-MATLAB
MATLAB live script to select, import, preview, and save the standard IPCC colormaps (Intergovernmental Panel on Climate Change)
?repo=mathworks/Standard-Climate-Colormaps-for-MATLAB)[![View Standard-Climate-Colormaps-for-MATLAB on File
- 81 (All time)
- 3 (Last 30 days)
- 5.0 / 5
- Community
-
29 Apr 2025
lutbar: a pedestrian colormap toolbar/contextmenu creator
LUTBAR creates a colormap toolbar and context menu
if you are tired of trying colormap(xxx) at the command prompt to find the appropriate colormap for your figure - try LUTBARLUTBAR creates a colormap toolbar with colormap icons and context menu from
- 4K (All time)
- 1 (Last 30 days)
- 4.8 / 5
- Community
-
21 Jan 2008
Blue-orange Colormap (esa colormap)
A colormap with colors orange-white-light blue.
A colormap with colors orange-white-light blue. The length of the colormap can be defined with additional parameters (e.g. colormap(esa(256)).
- 2.7K (All time)
- 3 (Last 30 days)
- 4.0 / 5
- Community
-
17 Mar 2006
geoscience-community-codes/GISMO
GISMO - a framework for scientific research in seismology/infrasound
- 6.6K (All time)
- 7 (Last 30 days)
- 5.0 / 5
- Community
-
13 Apr 2023
Create custom colormaps from single or multiple RGB values.
CMAP creates a custom colormap based on RGB values in the MATLAB format(values between 0-1). By specifying a base color, for example green: [0 1 0], CMAP creates a colormap with a specified number of
- 2.9K (All time)
- 2 (Last 30 days)
- 4.0 / 5
- Community
-
1 Jul 2013
Simple Matlab and python script that import colormaps from matplotlib into Matlab.
PyColormap4MatlabSimple Matlab and python script that import colormaps from matplotlib into Matlab.getPyPlot_cMap returns any colormap implemented in the matplotlib python library. It calls a python
- 4.1K (All time)
- 12 (Last 30 days)
- 4.9 / 5
- Community
-
17 Feb 2022
Mapcolor: Easily apply mulitple colormaps on the same figure
Take control of your colors! When one colormap just isn't enough.
Ever wish you could use multiple colormaps on a single figure? Now you can. Given an array, mapcolor.m applies a colormap of your choice, returning a new array of the same size that contains explicit
- 643 (All time)
- 1 (Last 30 days)
- 5.0 / 5
- Community
-
15 Apr 2011
Converts intensity matrices into truecolor images.
input colormap. The output can be displayed using IMAGE or IMSHOW, exported using IMWRITE, used for texture mapping, etc.Colormaps are specified either by name, or as a JxK colormap table (K = 3 or 4
- 8.3K (All time)
- 3 (Last 30 days)
- 4.9 / 5
- Community
-
8 Jul 2014
Colormaps compatible with red-green color perception deficiencies
Colormaps for displaying data compatible with red-green color perception deficiencies
contrast while being a good compromise for readers with color perception deficiencies. These colormaps are designed to be printer-friendly both for color printers as as well as B&W printers.The colormap
- 1.9K (All time)
- 6 (Last 30 days)
- 5.0 / 5
- Community
-
18 Apr 2013
sets the colormap according to monotonically increasing user defined ranges
This function is useful if you don't want to use the linear scaled colormap that are the default in Matlab. USAGE: CUSTOMCMAP(cbar_labels,user_cmap,minMaxValues
- 881 (All time)
- 1 (Last 30 days)
- 4.3 / 5
- Community
-
19 Jun 2012
Generates a colormap consisting of 2 maps, which transition at user defined threshold.
If you wish to display data with a colormap, but wish to have a clear border between the data above and below a certain threshold, while keeping a clear color gradient elsewhere, then this might be a
- 212 (All time)
- 1 (Last 30 days)
- 4.3 / 5
- Community
-
29 Oct 2016
truncated normal generator
Very fast generator of vectors from the standard multivariate normal or Gaussian distribution, truncated over the region [l,u]. The generator is designed for both speed and accuracy --- especially in
- 2.8K (All time)
- 2 (Last 30 days)
- 4.7 / 5
- Community
-
21 Apr 2016
Download true (not pseudo-) random numbers from random.org's generator
The function TRUERAND returns truly random integers using random.org's Random Integer Generator. According to random.org, the numbers are generated based on atmospheric noise and skew-corrected to
- 3.2K (All time)
- 2 (Last 30 days)
- 5.0 / 5
- Community
-
1 Sep 2016
Surface generator: artificial randomly rough surfaces
Generates randomly rough fractal surfaces with different fractal (Hurst) parameters
- 3.5K (All time)
- 4 (Last 30 days)
- 5.0 / 5
- Community
-
19 Dec 2016
Generation Of Solid Shapes Using Random Number Generator
Generation Of Solid Shapes Using Random Number Generator.
Generation Of Solid Shapes Using Random Number Generator. The Solid Shapes included are:1) Cuboid/Cube2) Sphere3) Cone4) Conical Frustum5) Pyramid6) Pyramidal Frustum7) CylinderTake it as an exercise
- 534 (All time)
- 2 (Last 30 days)
- 5.0 / 5
- Community
-
21 Jun 2011
NDVI colormap - red-yellow-green palette, 256 colors
MATLAB script to create NDVI colormap, display palette, load/display sample grayscale image and use lookup to convert to RGB
contents of NDVI_colormap.zipH.J. Sommer III, 19.10.28make_ndvi_colormap.m MATLAB script create NDVI colormap with 256 colors display palette load/display grayscale image using NDVI
- 236 (All time)
- 1 (Last 30 days)
- 5.0 / 5
- Community
-
28 Oct 2019
- 4K (All time)
- 12 (Last 30 days)
- 5.0 / 5
- Community
-
15 Jul 2024
Programmable Pulse Generator using Simulink's basic blocks
The proposed Pulse Generator offers full tunability of its parameters on runtime.
Following steps explain the working principle of the proposed Programmable Pulse Generator:1. Taking the modulus of the free running simulation "Clock" with the "Period", gives a triangular wave
- 4.6K (All time)
- 2 (Last 30 days)
- 4.6 / 5
- Community
-
30 Mar 2012
CI-ImagingLIF, Access Leica LIF and XLEF Files
Access Leica LIF and XLEF Files
: https://github.com/acampb311/xml2structAdvancedColormap: Andriy Nych (2023). (https://www.mathworks.com/matlabcentral/fileexchange/41583-advancedcolormap), MATLAB Central File Exchange. Retrieved April 18, 2023.
- 1.1K (All time)
- 3 (Last 30 days)
- 5.0 / 5
- Community
-
18 Apr 2023