bd26ba3c4ec91742376870736b088de2412ed8ee,ggplot/tests/test_geom.py,,test_geom_basics,#,12

Before Change


    g = geom(data=meat)
    assert_is(meat, g.data)
    g = geom(meat)
    assert_is(meat, g.data)
    g = geom(aes(color="beef"))
    assert_equal("beef", g.mapping["color"])
    g = geom(mapping=aes(color="pork"))
    assert_equal("pork", g.mapping["color"])

After Change



    // geom data should not mess with the main data
    df_copy = df.copy()
    p = ggplot(df, aes("col", "mpg")) + geom_abc(df_copy)
    assert p.data is df
    assert p.layers[0].geom.data is df_copy

    g = geom_abc(aes(color="col1"))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: has2k1/plotnine
Commit Name: bd26ba3c4ec91742376870736b088de2412ed8ee
Time: 2016-07-17
Author: has2k1@gmail.com
File Name: ggplot/tests/test_geom.py
Class Name:
Method Name: test_geom_basics


Project Name: has2k1/plotnine
Commit Name: dcceebd05be7ae476b8a8f409f9bc720568f6633
Time: 2020-12-01
Author: has2k1@gmail.com
File Name: plotnine/tests/test_ggplot_internals.py
Class Name:
Method Name: test_calculated_aes


Project Name: has2k1/plotnine
Commit Name: d29a72a2f206ec79c5311e45687d1318dec809eb
Time: 2013-12-06
Author: jasc@gmx.net
File Name: ggplot/tests/test_basic.py
Class Name:
Method Name: test_facet_grid