def update_axes_image(image_axes, image):
 image_axes.set_array(image)
 (h, w) = image.shape[:2]
 image_axes.set_extent((0, w, h, 0))

def update_axes_image ( image_axes , image ) : image_axes . set_array ( image ) ( h , w ) = image . shape [ : 2 ] image_axes . set_extent ( ( 0 , w , h , 0 ) )
update the image displayed by an image plot .