From: Nick Worth on
I am plotting iso-surfaces with transparency and lighting effects, and I want to light the colorbar, so that it resembles the iso-surfaces more closely. I am also using the "freezeColors.m" file (on the file exchange), which requires me to use the v6 colorbar. I am using R2007b

The code for lighting my iso-surfaces is simply:

camlight headlight;
lighting phong;

The code to plot the colorbar is:

colmap_choice='autumn';
colormap(colmap_choice);
h=colorbar('v6');
set(h,'position',[0.8 0.2 0.03 0.7]);
colorBarh=get(h,'Children');
set(colorBarh,'AlphaData',logspace(log10(0.1),log10(1),64)')
freezeColors(h)

Could somebody please tell me how to add similar lighting to the colorbar, so that it resembles the isosurface plot.


Thank you

Nick