File Exchange

image thumbnail

lutbar: a pedestrian colormap toolbar/contextmenu creator

version 1.0.0.0 (76 KB) by us
LUTBAR creates a colormap toolbar and context menu

4 Downloads

Updated 21 Jan 2008

View License

Editor's Note: This file was selected as MATLAB Central Pick of the Week

if you are tired of trying colormap(xxx) at the command prompt to find the appropriate colormap for your figure - try LUTBAR
LUTBAR creates a colormap toolbar with colormap icons and context menu from ML?s own colormaps and/or additional colormaps for fast colormap switching in a figure
LUTBAR comes with various options to define those colormaps that you want to show up on the bar/menu

an additional utility, LUT2MAT, converts NIH-IMAGE type color lookup tables to typical ML colormap files of the form xxx_lut.m, which are callable with any number of desired colors, ie, xxx_lut(nrcols)

see the accompanying published ML file for instructions and an example, and type
> help lutbar
> help lut2mat
for more information

Cite As

us (2020). lutbar: a pedestrian colormap toolbar/contextmenu creator (https://www.mathworks.com/matlabcentral/fileexchange/9137-lutbar-a-pedestrian-colormap-toolbar-contextmenu-creator), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (5)

Brad

If you are getting an error in the demo when executing the line...

lut2mat('d*.lut',0);

...your current working directory must be ~/lutbar (the folder for this file exchange entry containing lut2mat.m & d.lut). This is regardless of whether /lutbar is in your active path. If you do have /lutbar in your path, you can stick this line of code somewhere at the top of the file will fix the problem...

cd(fileparts(which('lutbar')))

The scrupulous user should bake-in a way to return to the current working directory before departing the lut2mat() function.

wee

Jveer

Brett Shoelson

Steffi Grollius

works fine!

MATLAB Release Compatibility
Created with R14
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!

html/