FigureData.py
def translate_xy(x, y):
    """
    Translate the event (x,y) coordinates to plot coordinates
    """
    xval = (x-G.xpix[0])*np.diff(G.xrange)/np.diff(G.xpix)+G.xrange[0]
    yval = (y-G.ypix[0])*np.diff(G.yrange)/np.diff(G.ypix)+G.yrange[0]
    
    return xval, yval

    Translate the event (x,y) coordinates to plot coordinates
    
Translate the event (x,y) coordinates to plot coordinates
Translate the event ( x y ) coordinates to plot coordinates
def translate_xy(x, y):
    xval = (x-G.xpix[0])*np.diff(G.xrange)/np.diff(G.xpix)+G.xrange[0]
    yval = (y-G.ypix[0])*np.diff(G.yrange)/np.diff(G.ypix)+G.yrange[0]
    return xval, yval
def translate_xy ( x , y ) : xval = ( x - G . xpix [ 0 ] ) * np . diff ( G . xrange ) / np . diff ( G . xpix ) + G . xrange [ 0 ] yval = ( y - G . ypix [ 0 ] ) * np . diff ( G . yrange ) / np . diff ( G . ypix ) + G . yrange [ 0 ] return xval , yval
Translate the event (x,y) coordinates to plot coordinates
Translate the event ( x y ) coordinates to plot coordinates
"""
    Translate the event (x,y) coordinates to plot coordinates
    """
x
y