@cleanup
def test_geom_festival_of_lines():
    # All 3 lines should intersect at the point of the same color.
    # Horizontal and vertical will overlap for points on the same line
    df = _build_line_df()
    df['color'] = range(len(df['wt']))
    def xfunc(x):
        return x
    def yfunc(y):
        return y
    def ifunc(x, y):
        return y - 5 * x
    def sfunc(x, y):
        return 5
    gg = ggplot(df, aes(x='wt', y='mpg', color='factor(color)'))
    gg = (gg + geom_point(size=150, alpha=.9) +
          geom_abline(size=2, intercept=ifunc, slope=sfunc) +
          geom_vline(size=2, xintercept=xfunc) +
          geom_hline(size=2, yintercept=yfunc))
    assert_same_ggplot(gg, 'geom_festival_of_lines')
dataset/ETHPy150Open yhat/ggplot/ggplot/tests/test_geom_lines.py/test_geom_festival_of_lines/original