def set_ticks(self, ticks, minor=False):
<EOL>ticks = self.convert_units(ticks)<EOL>if len(ticks) > <NUM_LIT:1>:<EOL><INDENT>xleft, xright = self.get_view_interval()<EOL>if xright > xleft:<EOL><INDENT>self.set_view_interval(min(ticks), max(ticks))<EOL><DEDENT>else:<EOL><INDENT>self.set_view_interval(max(ticks), min(ticks))<EOL><DEDENT><DEDENT>if minor:<EOL><INDENT>self.set_minor_locator(mticker.FixedLocator(ticks))<EOL>return self.get_minor_ticks(len(ticks))<EOL><DEDENT>else:<EOL><INDENT>self.set_major_locator( mticker.FixedLocator(ticks) )<EOL>return self.get_major_ticks(len(ticks))<EOL><DEDENT>
Set the locations of the tick marks from sequence ticks

ACCEPTS: sequence of floats