Insert image on current plot without deformation


In matplotlib, what is the most appropriate way to plot an image with
its native aspect ratio, and optionally its native size, inside existing axes at a specific data location?

For instance:

from matplotlib.pyplot import plot
from matplotlib.image import imread
from matplotlib.cbook import get_sample_data
im = imread(get_sample_data("grace_hopper.png", asfileobj=False))

Now I want to plot im for instance centered at coordinates (57,1200) with some scaling or a max height and without deformation.

Thanks for the help.


Stephane Raynaud