Skip to content

A set of colormaps (in csv format) that can be used in MATLAB. Colormaps such as 'plasma', and 'inferno' are included which are not currently available in MATLAB's builtin colormaps.

License

Notifications You must be signed in to change notification settings

zaman13/Colormaps_MATLAB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Colormaps_MATLAB

A set of colormaps (in csv format) that can be used in MATLAB. Colormaps such as 'plasma', and 'inferno' are included which are not currently available in MATLAB's builtin colormaps.

The csv files contain rgb values of the colormaps.

Use

Copy the csv data file of the colormap in local folder. In the MATLAB code, import the csv file in a matrix. Then use colormap() command after your plot command. Example:

c_map = csvread('inferno_colormap.csv');
...              % your code           
...
contourf(....)   % plotting, contourf, surf etc.
colormap(c_map)  

Sample output

alt text alt text

References

  1. Moreland colormap: http://www.kennethmoreland.com/color-maps/ColorMapsExpanded.pdf
  2. Turbo colormap: https://ai.googleblog.com/2019/08/turbo-improved-rainbow-colormap-for.html
  3. https://github.com/jgreitemann/colormap

About

A set of colormaps (in csv format) that can be used in MATLAB. Colormaps such as 'plasma', and 'inferno' are included which are not currently available in MATLAB's builtin colormaps.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages