def set_locs(self, locs):
<EOL>_check_implicitly_registered()<EOL>self.locs = locs<EOL>(vmin, vmax) = vi = tuple(self.axis.get_view_interval())<EOL>if vi != self.plot_obj.view_interval:<EOL><INDENT>self.plot_obj.date_axis_info = None<EOL><DEDENT>self.plot_obj.view_interval = vi<EOL>if vmax < vmin:<EOL><INDENT>(vmin, vmax) = (vmax, vmin)<EOL><DEDENT>self._set_default_format(vmin, vmax)<EOL>
Sets the locations of the ticks