def set_locs(self, locs):
self.locs = locs<EOL>if len(self.locs) > <NUM_LIT:0>:<EOL><INDENT>vmin, vmax = self.axis.get_view_interval()<EOL>d = abs(vmax-vmin)<EOL>if self._useOffset: self._set_offset(d)<EOL>self._set_orderOfMagnitude(d)<EOL>self._set_format()<EOL><DEDENT>
set the locations of the ticks