do not print colormap name for format=raw
This commit is contained in:
parent
10a32dc17b
commit
2784a96a51
|
@ -398,8 +398,7 @@ class Colormap():
|
||||||
+ '\n}'
|
+ '\n}'
|
||||||
|
|
||||||
def write_raw(RGB_vector):
|
def write_raw(RGB_vector):
|
||||||
return 'ColorMap name = '+str(name)+'\n' \
|
return '\n'.join(['%s'%('\t'.join(map(lambda x:str(x),v))) for v in RGB_vector])
|
||||||
+ '\n'.join(['%s'%('\t'.join(map(lambda x:str(x),v))) for v in RGB_vector])
|
|
||||||
|
|
||||||
def write_GOM(RGB_vector):
|
def write_GOM(RGB_vector):
|
||||||
return '1 1 '+str(name)+' 9 '+str(name)+' 0 1 0 3 0 0 -1 9 \ 0 0 0 255 255 255 0 0 255 '\
|
return '1 1 '+str(name)+' 9 '+str(name)+' 0 1 0 3 0 0 -1 9 \ 0 0 0 255 255 255 0 0 255 '\
|
||||||
|
|
Loading…
Reference in New Issue