#NEWLINE# def create( self ) : #NEWLINE# #INDENT# self . source = self . update_source ( ) #NEWLINE# p = figure ( plot_width = 400 , plot_height = 400 , title = 'Harvest Plot' , x_axis_type = 'datetime' , tools = 'pan, wheel_zoom, box_zoom, reset, resize, save, hover' ) #NEWLINE# p . line ( x = 'timestamp' , y = 'relevant_pages' , color = GREEN , line_width = 0.2 , legend = 'relevant' , source = self . source ) #NEWLINE# p . scatter ( x = 'timestamp' , y = 'relevant_pages' , fill_alpha = 0.6 , color = GREEN , source = self . source ) #NEWLINE# p . line ( x = 'timestamp' , y = 'downloaded_pages' , color = DARK_GRAY , line_width = 0.2 , legend = 'downloaded' , source = self . source ) #NEWLINE# p . scatter ( x = 'timestamp' , y = 'downloaded_pages' , fill_alpha = 0.6 , color = DARK_GRAY , source = self . source ) #NEWLINE# hover = p . select ( dict ( type = HoverTool ) ) #NEWLINE# hover . tooltips = OrderedDict ( [ ( 'harvest_rate' , '@harvest_rate' ) ] ) #NEWLINE# p . legend . orientation = 'top_left' #NEWLINE# ( script , div ) = components ( p ) #NEWLINE# return ( script , div )