def autoscale(self):
<EOL>(vmin, vmax) = self.axis.get_data_interval()<EOL>locs = self._get_default_locs(vmin, vmax)<EOL>(vmin, vmax) = locs[[<NUM_LIT:0>, -<NUM_LIT:1>]]<EOL>if vmin == vmax:<EOL><INDENT>vmin -= <NUM_LIT:1><EOL>vmax += <NUM_LIT:1><EOL><DEDENT>return nonsingular(vmin, vmax)<EOL>
Sets the view limits to the nearest multiples of base that contain the
data.