Superjet

Extension of jet colormap to include more colors. It can also be used to build virtually any custom colormaps.
129.0 次下载
更新时间 2020/7/21

查看许可证

Superjet is a general function for colormap building. I originally wrote it back in the days when jet was the default colormap and it was designed as an extension of jet to include black and white. It is used like every other MATLAB built-in colormap functions like jet, hot or parula.
If called without output argument it will show the colormap on a figure.
superjet(); returns a 256–by–3 matrix containing an extension of jet colormap going through black–purple–blue–cyan–green–yellow–orange–red–pink–white.
superjet(N); returns an N–by–3 matrix containing superjet colormap where N is the number of colors.
superjet(N,option); returns the N–by–3 colormap with the following options:
'pale': Superjet is provided with pale colours.
'dark': Superjet is provided with dark colours.
'cyclic': Superjet starts and ends with the same color (designed for representation of angles).
'many': Designed to obtain many distinctive colours instead of a progressive color scale. A combination of normal,dark and pale is returned.
'lines': The same as 'many' but in this case the colormap is shuffled.
'all': All preset colors are shown with their associated character.
'dictionary': Same as 'all' but they are sorted alphabetically.
superjet(N,colors); returns an N–by–3 colormap where colors is a string specifying the colors. The string can have however many characters from the following table.
k – black y – yellow c – cyan m – magenta w – white
g – green r – red b – blue v – violet p – pink
j – jade o – orange u – purple i – indigo q – quartz
l – lime a – amber d – denim n – brown s – salmon
t – turquoise 2 – gray2 4 – gray4 6 – gray6 8 – gray8

Run superjet(‘all’); to see the complete list.

Example calls:
cm=superjet('kg'); % will produce a black to green colormap
cm=superjet('k123456789w'); % will produce a colormap similar to gray()
cm=superjet(200,'kroyw'); % will produce a colormap similar to hot(200)

– AlexV

引用格式

Alexander Vallmitjana Lees (2024). Superjet (https://www.mathworks.com/matlabcentral/fileexchange/74715-superjet), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2019b
兼容任何版本
平台兼容性
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.1

Added citation

1.0.0