def get_index_pos(self,idx):
            return (1.0*idx)/(self.control.width-1)
Return gradient position f in [0..1] for x-index Idx in
dataset/ETHPy150Open enthought/mayavi/tvtk/util/tk_gradient_editor.py/FunctionControl.Channel.get_index_pos