def modify_colorpoint(self, n, position=<NUM_LIT:0.5>, color1=[<NUM_LIT:1.0>,<NUM_LIT:1.0>,<NUM_LIT:1.0>], color2=[<NUM_LIT:1.0>,<NUM_LIT:1.0>,<NUM_LIT:1.0>]):
if    n==<NUM_LIT:0.0>                         : position = <NUM_LIT:0.0><EOL>elif  n==len(self._colorpoint_list)-<NUM_LIT:1>: position = <NUM_LIT:1.0><EOL>else: position = max(self._colorpoint_list[n-<NUM_LIT:1>][<NUM_LIT:0>], position)<EOL>self._colorpoint_list[n] = [position, color1, color2]<EOL>self.update_image()<EOL>self.save_colormap("<STR_LIT>")<EOL>
Changes the values of an existing colorpoint, then updates the colormap.