#NEWLINE# def _init_plot( self , key , element , plots , ranges = None ) : #NEWLINE# #INDENT# '\n        Initializes Bokeh figure to draw Element into and sets basic\n        figure and axis attributes including axes types, labels,\n        titles and plot height and width.\n        ' #NEWLINE# subplots = ( list ( self . subplots . values ( ) ) if self . subplots else [ ] ) #NEWLINE# ( axis_types , labels , plot_ranges ) = self . _axes_props ( plots , subplots , element , ranges ) #NEWLINE# ( xlabel , ylabel , zlabel ) = labels #NEWLINE# ( x_axis_type , y_axis_type ) = axis_types #NEWLINE# tools = self . _init_tools ( element ) #NEWLINE# properties = dict ( plot_ranges ) #NEWLINE# properties [ 'x_axis_label' ] = ( xlabel if ( 'x' in self . show_labels ) else ' ' ) #NEWLINE# properties [ 'y_axis_label' ] = ( ylabel if ( 'y' in self . show_labels ) else ' ' ) #NEWLINE# if ( LooseVersion ( bokeh . __version__ ) >= LooseVersion ( '0.10' ) ) : #NEWLINE# #INDENT# properties [ 'webgl' ] = self . renderer . webgl #NEWLINE# #UNINDENT# return bokeh . plotting . Figure ( x_axis_type = x_axis_type , y_axis_type = y_axis_type , tools = tools , ** properties )