'Given a mpl line2d instance create a Bokeh Line glyph.'

def draw_line(self, data, coordinates, style, label, mplobj=None):

    _x = data[:, 0]
    if (pd and self.use_pd):
        try:
            x = [pd.Period(ordinal=int(i), freq=self.ax.xaxis.freq).to_timestamp() for i in _x]
        except AttributeError:
            x = _x
    else:
        x = _x
    y = data[:, 1]
    if self.xkcd:
        (x, y) = xkcd_line(x, y)
    line = Line()
    source = ColumnDataSource()
    line.x = source.add(x)
    line.y = source.add(y)
    line.line_color = convert_color(style['color'])
    line.line_width = style['linewidth']
    line.line_alpha = style['alpha']
    line.line_dash = ([] if (style['dasharray'] is 'none') else [int(i) for i in style['dasharray'].split(',')])
    if self.xkcd:
        line.line_width = 3
    r = self.plot.add_glyph(source, line)
    self.zorder[r._id] = style['zorder']
    self.handles[id(mplobj)] = r
