def set_extent(self, extent):
self._extent = extent<EOL>xmin, xmax, ymin, ymax = extent<EOL>corners = (xmin, ymin), (xmax, ymax)<EOL>self.axes.update_datalim(corners)<EOL>if self.axes._autoscaleon:<EOL><INDENT>self.axes.set_xlim((xmin, xmax))<EOL>self.axes.set_ylim((ymin, ymax))<EOL><DEDENT>
extent is data axes (left, right, bottom, top) for making image plots