#NEWLINE# def xPixelToX( self , xPx ) : #NEWLINE# #INDENT# result = Double . NaN #NEWLINE# if ( ( NAI != xPx ) and ( self . xChartSize > 1 ) ) : #NEWLINE# #INDENT# result = ( self . xMin + ( ( ( self . xMax - xPx . xMin ) * xPx ) / ( self . xChartSize - 1.0 ) ) ) #NEWLINE# #UNINDENT# return result