def errorbars(fig, x, y, xerr=None, xupper=None, xlower=None, yerr=None,
    yupper=None, ylower=None, color='red', point_kwargs={}, error_kwargs={}):
    """
    Hack to make errorbar plots in bokeh

    Parameters
    ----------
    x: sequence
        The x axis data
    y: sequence
        The y axis data
    xerr: sequence (optional)
        The x axis errors
    yerr: sequence (optional)
        The y axis errors
    color: str
        The marker and error bar color
    point_kwargs: dict
        kwargs for the point styling
    error_kwargs: dict
        kwargs for the error bar styling
    legend: str
        The text for the legend
    """
    if xerr is not None or xupper is not None and xlower is not None:
        x_err_x = []
        x_err_y = []
        if xerr is not None:
            for px, py, err in zip(x, y, xerr):
                try:
                    x_err_x.append((px - err, px + err))
                    x_err_y.append((py, py))
                except TypeError:
                    pass
        elif xupper is not None and xlower is not None:
            for px, py, lower, upper in zip(x, y, xlower, xupper):
                try:
                    x_err_x.append((px - lower, px + upper))
                    x_err_y.append((py, py))
                except TypeError:
                    pass
        fig.multi_line(x_err_x, x_err_y, color=color, **error_kwargs)
    if yerr is not None or yupper is not None and ylower is not None:
        y_err_x = []
        y_err_y = []
        if yerr is not None:
            for px, py, err in zip(x, y, yerr):
                try:
                    y_err_y.append((py - err, py + err))
                    y_err_x.append((px, px))
                except TypeError:
                    pass
        elif yupper is not None and ylower is not None:
            for px, py, lower, upper in zip(x, y, ylower, yupper):
                try:
                    y_err_y.append((py - lower, py + upper))
                    y_err_x.append((px, px))
                except TypeError:
                    pass
        fig.multi_line(y_err_x, y_err_y, color=color, **error_kwargs)
