'Set the locations of the tick marks from sequence ticks
ACCEPTS: sequence of floats'

def set_ticks(self, ticks, minor=False):

    ticks = self.convert_units(ticks)
    if (len(ticks) > 1):
        (xleft, xright) = self.get_view_interval()
        if (xright > xleft):
            self.set_view_interval(min(ticks), max(ticks))
        else:
            self.set_view_interval(max(ticks), min(ticks))
    if minor:
        self.set_minor_locator(mticker.FixedLocator(ticks))
        return self.get_minor_ticks(len(ticks))
    else:
        self.set_major_locator(mticker.FixedLocator(ticks))
        return self.get_major_ticks(len(ticks))
