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

3 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

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

Steffi Grollius

works fine!

Updates

1.0.0.0

removed erroneous behavior in ML versions 7.5 and above; version tag is 19-Jan-2008 04:28:47

resubmitted due to some code metrics issue

added support for R2006x versions; lutbar version tag is 03-Sep-2006 18:34:41

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

html/