def image_click_xshift(axes = "<STR_LIT>"):
if axes == "<STR_LIT>": axes = _pylab.gca()<EOL>try:<EOL><INDENT>p1 = _pylab.ginput()<EOL>p2 = _pylab.ginput()<EOL>xshift = p2[<NUM_LIT:0>][<NUM_LIT:0>]-p1[<NUM_LIT:0>][<NUM_LIT:0>]<EOL>e = axes.images[<NUM_LIT:0>].get_extent()<EOL>e[<NUM_LIT:0>] = e[<NUM_LIT:0>] + xshift<EOL>e[<NUM_LIT:1>] = e[<NUM_LIT:1>] + xshift<EOL>axes.images[<NUM_LIT:0>].set_extent(e)<EOL>_pylab.draw()<EOL><DEDENT>except:<EOL><INDENT>print("<STR_LIT>")<EOL><DEDENT>
Takes a starting and ending point, then shifts the image y by this amount