

def getEdgeTop(self, pp, symbol, y, onY2):
    if onY2:
        yMin = pp.getY2Max()
        yMax = pp.getY2Min()
    else:
        yMin = pp.getYMax()
        yMax = pp.getYMin()
    yMid = symbol.getBaseline()
    if (Double.NaN == yMid):
        yMid = ((yMin + yMax) / 2.0)
    yMinPx = pp.yToPixel(yMin, onY2)
    yMaxPx = pp.yToPixel(yMax, onY2)
    yMidPx = pp.yToPixel(yMid, onY2)
    yPx = pp.yToPixel(y, onY2)
    prevYPx = Double.NaN
    nextYPx = Double.NaN
    height = symbol.getHeight(pp, yMax)
    symHeight = self.getAdjustedHeight(height, yPx, prevYPx, nextYPx, yMinPx, yMaxPx, yMidPx)
    if (Double.NaN == symHeight):
        return Double.NaN
    yTop = self.getUpperLeftY(height, yPx, prevYPx, nextYPx, yMinPx, yMaxPx, yMidPx, pp.getYMousePlotArea())
    if (Double.NaN == yTop):
        return Double.NaN
    result = yTop
    return result

dataset/ETHPy150Open anandology/pyjamas/library/gwt/chart/SymbolType.py SymbolType.getEdgeTop/VarMisuse@157/228 `onY2`->`yMax`