def save_colormap(self, name=None):
if name == None: name = self.get_name()<EOL>if name == "<STR_LIT>" or not type(name)==str: return "<STR_LIT>"<EOL>colormaps = _os.path.join(_settings.path_home, '<STR_LIT>')<EOL>_settings.MakeDir(colormaps)<EOL>path = _os.path.join(_settings.path_home, '<STR_LIT>', name+"<STR_LIT>")<EOL>f = open(path, '<STR_LIT:w>')<EOL>f.write(str(self._colorpoint_list))<EOL>f.close()<EOL>return self<EOL>
Saves the colormap with the specified name. None means use internal
name. (See get_name())