def _create_image_html(figure, area_data, plot_info):
 (png, bbox) = _create_png(figure)
 areas = [(_AREA_TEMPLATE % ((data['left'] - bbox[0]), (data['top'] - bbox[1]), (data['right'] - bbox[0]), (data['bottom'] - bbox[1]), data['title'], data['callback'], _json_encoder.encode(data['callback_arguments']).replace('"', '&quot;'))) for data in area_data]
 map_name = (plot_info.drilldown_callback + '_map')
 return (_HTML_TEMPLATE % (base64.b64encode(png), map_name, map_name, '\n'.join(areas)))

def _create_image_html ( figure , area_data , plot_info ) : ( png , bbox ) = _create_png ( figure ) areas = [ ( _AREA_TEMPLATE % ( ( data [ 'left' ] - bbox [ 0 ] ) , ( data [ 'top' ] - bbox [ 1 ] ) , ( data [ 'right' ] - bbox [ 0 ] ) , ( data [ 'bottom' ] - bbox [ 1 ] ) , data [ 'title' ] , data [ 'callback' ] , _json_encoder . encode ( data [ 'callback_arguments' ] ) . replace ( '"' , '&quot;' ) ) ) for data in area_data ] map_name = ( plot_info . drilldown_callback + '_map' ) return ( _HTML_TEMPLATE % ( base64 . b64encode ( png ) , map_name , map_name , '\n' . join ( areas ) ) )
given the figure and drilldown data .