Using with colorFreeze, this work well. However using it along with a 3d plot (surf)causes the colorbar to have a LOT of numbers all around the figure... This is a shame though since my only use is for such usage...
Thank you all for your comments. Now the scientific notation 'x10' issues are fixed (well I guess so), and a new way to write it included: using International System Units' prefixes (mega, kilo, etc.).
Cheers, Carlos A.
The function works very nicely, especially in combination with the freezeColors function :-)
However, it doesn't work with the lcolorbar. I'm mainly interested in this because I use colors to encode/visualize categories rather than actual values, where lcolorbar is very easy to add a label. Any quick fix in mind? I'll try to fix it by adding labels on the normal colorbar manually in the meantime.