#NEWLINE# def update_frame( self , key , ranges = None ) : #NEWLINE# #INDENT# grid = self . _get_frame ( key ) #NEWLINE# ranges = self . compute_ranges ( self . layout , key , ranges ) #NEWLINE# for xkey in grid_key . _xkeys : #NEWLINE# #INDENT# for ykey in self . _ykeys : #NEWLINE# #INDENT# plot = self . handles [ 'projs' ] [ ( xkey , ykey ) ] #NEWLINE# grid_key = ( ( xkey , ykey ) if ( self . layout . ndims > 1 ) else ( xkey , ) ) #NEWLINE# element = grid . data . get ( grid_key , None ) #NEWLINE# if element : #NEWLINE# #INDENT# plot . set_visible ( True ) #NEWLINE# data = ( element . values ( ) [ 0 ] . data if isinstance ( element , CompositeOverlay ) else element . data ) #NEWLINE# plot . set_data ( data ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# plot . set_visible ( False ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# kwargs = self . _get_axis_kwargs ( ) #NEWLINE# return self . _finalize_axis ( key , ranges = ranges , ** kwargs )