def _plot_dict_series(data, plot, legend_pos):
    'Plot series from dict.'
    legend_items = []
    for (ser_name, series_def) in data.items():
        if (legend_pos == 'inline'):
            p_series = plot.diamond(x=series_def['time_column'], y='y_index', color=series_def['color'], alpha=0.5, size=10, source=series_def['source'], legend_label=str(ser_name))
        else:
            p_series = plot.diamond(x=series_def['time_column'], y='y_index', color=series_def['color'], alpha=0.5, size=10, source=series_def['source'])
        if (legend_pos in ['left', 'right']):
            legend_items.append((ser_name, [p_series]))
    if (legend_pos == 'inline'):
        plot.legend.location = 'top_left'
        plot.legend.click_policy = 'hide'
    elif (legend_pos in ['left', 'right']):
        ext_legend = Legend(items=legend_items, location='center', click_policy='hide', label_text_font_size='8pt')
        plot.add_layout(ext_legend, legend_pos)
Plot series from dict.
def _plot_dict_series(data, plot, legend_pos):
    
    legend_items = []
    for (ser_name, series_def) in data.items():
        if (legend_pos == 'inline'):
            p_series = plot.diamond(x=series_def['time_column'], y='y_index', color=series_def['color'], alpha=0.5, size=10, source=series_def['source'], legend_label=str(ser_name))
        else:
            p_series = plot.diamond(x=series_def['time_column'], y='y_index', color=series_def['color'], alpha=0.5, size=10, source=series_def['source'])
        if (legend_pos in ['left', 'right']):
            legend_items.append((ser_name, [p_series]))
    if (legend_pos == 'inline'):
        plot.legend.location = 'top_left'
        plot.legend.click_policy = 'hide'
    elif (legend_pos in ['left', 'right']):
        ext_legend = Legend(items=legend_items, location='center', click_policy='hide', label_text_font_size='8pt')
        plot.add_layout(ext_legend, legend_pos)