mgdevereux / googleearthtoolbox

Automatically exported from code.google.com/p/googleearthtoolbox
BSD 2-Clause "Simplified" License
1 stars 0 forks source link

problem with custom color maops in ge_image_sc #19

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. ge_image_sc(...,,'cMap',xxx)
2.
3.

What is the expected output? What do you see instead?
Matlab crashes at line 146:
eval(['data3 = ind2rgb(X, ' cMap '(256));']);

What version of the product are you using? On what operating system?
latest version (41), Windows XP

Please provide any additional information below:
Current code tries to create a colorbar using
colormap(cMap(256)), which works for standard 
colormap (e.g. 'jet') but not for custom colormap.
Suggested solution: create a function which returns
a variableof size (256,3) containing colormap information 

Original issue reported on code.google.com by jamieeq...@gmail.com on 22 Mar 2010 at 2:58

GoogleCodeExporter commented 9 years ago

Original comment by skawtus on 13 Mar 2012 at 12:26