Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Closed as not planned
Description
Problem
In situations where anAxes
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 likescalex
andscaley
as inAxes.plot
. Right now, even if you fix the limits afterimshow
, 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 theimshow
line below in anif
wherescalexy
isTrue
by default:
ifscalexy:im.set_extent(im.get_extent())