Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 00136e6

Browse files
committed
Update AxesImage for independent autoscaling of x and y axes.
svn path=/trunk/matplotlib/; revision=6908
1 parent 61e329d commit 00136e6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/matplotlib/image.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,8 +317,9 @@ def set_extent(self, extent):
317317
xmin, xmax, ymin, ymax = extent
318318
corners = (xmin, ymin), (xmax, ymax)
319319
self.axes.update_datalim(corners)
320-
if self.axes._autoscaleon:
320+
if self.axes._autoscaleXon:
321321
self.axes.set_xlim((xmin, xmax))
322+
if self.axes._autoscaleYon:
322323
self.axes.set_ylim((ymin, ymax))
323324

324325
def get_interpolation(self):

0 commit comments

Comments
 (0)