#NEWLINE# def transform_non_affine( self , xy ) : #NEWLINE# #INDENT# if ( self . viewer is None ) : #NEWLINE# #INDENT# return xy #NEWLINE# #UNINDENT# res = np . dstack ( self . viewer . get_data_xy ( xy . T [ 0 ] , xy . T [ 1 ] ) ) [ 0 ] #NEWLINE# return res