def generate_patch_base(x, y, base=0.0):
    x = x.values
    y = y.values

    # add base of area by starting and ending at base
    y0 = np.insert(y, 0, base)
    y0 = np.append(y0, base)

    # make sure y is same length as x
    x0 = np.insert(x, 0, x[0])
    x0 = np.append(x0, x0[-1])

    return x0, y0
Create a bundled node-link graph from spatial points and their connectivity.
dataset/ETHPy150Open bokeh/bokeh/bokeh/charts/utils.py/generate_patch_base--crossover with--dataset/ETHPy150Open lightning-viz/lightning-python/lightning/types/plots.py/GraphBundled.clean