do not print colormap name for format=raw

This commit is contained in:
Christoph Kords 2013-05-28 14:45:53 +00:00
parent 10a32dc17b
commit 2784a96a51
1 changed files with 1 additions and 2 deletions

View File

@ -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 '\