#NEWLINE# def yChartPixelToY( self , yPx ) : #NEWLINE# #INDENT# result = Double . NaN #NEWLINE# if ( ( NAI != yPx ) and ( self . yChartSize > 1 ) ) : #NEWLINE# #INDENT# result = ( self . yMax + ( ( ( self . yMin - self . yMax ) * ( yPx - self . topMargin ) ) / ( self . yChartSize - 1.0 ) ) ) #NEWLINE# #UNINDENT# return result