def Horizon(data=None, x=None, y=None, series=None, **kws):
 kws['x'] = x
 kws['y'] = y
 kws['series'] = series
 tools = kws.get('tools', True)
 if (tools == True):
  tools = 'save,reset'
 elif isinstance(tools, string_types):
  tools = tools.replace('pan', '')
  tools = tools.replace('wheel_zoom', '')
  tools = tools.replace('box_zoom', '')
  tools = tools.replace(',,', ',')
 kws['tools'] = tools
 chart = create_and_build(HorizonBuilder, data, **kws)
 chart.left[0].visible = False
 chart.extra_y_ranges = {'series': FactorRange(factors=chart._builders[0].series_names)}
 chart.add_layout(CategoricalAxis(y_range_name='series'), 'left')
 return chart

def Horizon ( data = None , x = None , y = None , series = None , ** kws ) : kws [ 'x' ] = x kws [ 'y' ] = y kws [ 'series' ] = series tools = kws . get ( 'tools' , True ) if ( tools == True ) : tools = 'save,reset' elif isinstance ( tools , string_types ) : tools = tools . replace ( 'pan' , '' ) tools = tools . replace ( 'wheel_zoom' , '' ) tools = tools . replace ( 'box_zoom' , '' ) tools = tools . replace ( ',,' , ',' ) kws [ 'tools' ] = tools chart = create_and_build ( HorizonBuilder , data , ** kws ) chart . left [ 0 ] . visible = False chart . extra_y_ranges = { 'series' : FactorRange ( factors = chart . _builders [ 0 ] . series_names ) } chart . add_layout ( CategoricalAxis ( y_range_name = 'series' ) , 'left' ) return chart
create a horizon chart using :class:horizonbuilder <bokeh .