def legend(labelcolor, axl):
    for label, color in labelcolor:
        axl.scatter(1, 1, c=color, label=label)
        axl.set_ylim(0, .1)
        axl.legend(bbox_to_anchor=(0, 1), loc=2, borderaxespad=0,
                   scatterpoints=1, frameon=False)
        axl.axis('off')
    return axl
Set the window height in rows.
dataset/ETHPy150Open beltashazzer/jmpy/jmpy/plotting/components.py/legend--crossover with--dataset/ETHPy150Open neovim/python-client/neovim/api/window.py/Window.height