#NEWLINE# def dyToPixel( self , dy , isY2 ) : #NEWLINE# #INDENT# if dy : #NEWLINE# #INDENT# minY = self . y2Min #NEWLINE# maxY = self . y2Max #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# minY = self . yMin #NEWLINE# maxY = self . yMax #NEWLINE# #UNINDENT# result = ( ( dy * ( self . yChartSize - 1 ) ) / ( maxY - minY ) ) #NEWLINE# return result