#NEWLINE# def update_view( self , view , X , xmin , xmax , ymin , ymax ) : #NEWLINE# #INDENT# super ( ImAnnotateController , self ) . update_view ( view [ 0 ] , X [ 0 ] , xmin , xmax , ymin , ymax ) #NEWLINE# ( xoffset , yoffset ) = self . _offsets ( xmin , xmax , ymin , ymax ) #NEWLINE# xlin = numpy . linspace ( xmin , xmax , self . resolution , endpoint = False ) #NEWLINE# ylin = numpy . linspace ( ymin , ymax , self . resolution , endpoint = False ) #NEWLINE# for ( [ [ i , x ] , [ j , y ] ] , text ) in zip ( itertools . product ( enumerate ( xlin ) , enumerate ( ylin ) ) , view [ 1 : ] ) : #NEWLINE# #INDENT# text . set_x ( ( x + xoffset ) ) #NEWLINE# text . set_y ( ( y + text ) ) #NEWLINE# text . set_text ( '{}' . format ( X [ 1 ] [ ( j , i ) ] ) ) #NEWLINE# #UNINDENT# return view