-
-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Closed as not planned
Labels
Description
Problem
In situations where an Axes has a large background image/map (extent greater than axis limits) and the axis limits are supposed to be controlled by other artists, like paths, it would be very helpful to have toggling parameters like scalex and scaley as in Axes.plot. Right now, even if you fix the limits after imshow, the moment you let autoscale do its thing (which is desired) it rescales to show the whole image.
Proposed Solution
A very simple and probably naive solution would be to wrap the imshow line below in an if where scalexy is True by default:
if scalexy:
im.set_extent(im.get_extent())