'Takes a mpl collection object to extract and set up some Bokeh multiline properties.'

def multiline_props(self, source, multiline, col):

    colors = get_props_cycled(col, col.get_colors(), fx=(lambda x: mpl.colors.rgb2hex(x)))
    colors = [convert_color(x) for x in colors]
    widths = get_props_cycled(col, col.get_linewidth())
    multiline.line_color = source.add(colors)
    multiline.line_width = source.add(widths)
    if (col.get_alpha() is not None):
        multiline.line_alpha = col.get_alpha()
    offset = col.get_linestyle()[0][0]
    if (not col.get_linestyle()[0][1]):
        on_off = []
    else:
        on_off = map(int, col.get_linestyle()[0][1])
    multiline.line_dash_offset = convert_dashes(offset)
    multiline.line_dash = list(convert_dashes(tuple(on_off)))
