61359b01bbafa7a98ad614835159705d9003476a,plotnine/tests/test_annotation_logticks.py,,test_annotation_logticks_coord_flip,#,32

Before Change



def test_annotation_logticks_coord_flip():
    p = (
        ggplot(mtcars)
        + geom_point(aes("wt", "mpg"))
        + scale_x_continuous(
            trans="log10", minor_breaks=8, limits=(1, 10), breaks=[1, 10]
        )
        + scale_y_continuous(
            trans="log10", limits=(10, 100), minor_breaks=8, breaks=[10, 100]
        )
        + annotation_logticks(sides="b")  // which ends up on the left
        + coord_flip()
    )
    assert p == "annotation_logticks_coord_flip"

After Change




def test_annotation_logticks_coord_flip():
    p = (ggplot(df, aes("x", "x"))
         + annotation_logticks(sides="b", size=.75)
         + geom_point()
         + scale_x_log10()
         + scale_y_log10()
         + coord_flip()
         + theme(
             panel_grid_minor=element_line(color="green"),
             panel_grid_major=element_line(color="red"))
         )

    assert p == "annotation_logticks_coord_flip"

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 9

Instances


Project Name: has2k1/plotnine
Commit Name: 61359b01bbafa7a98ad614835159705d9003476a
Time: 2018-12-28
Author: has2k1@gmail.com
File Name: plotnine/tests/test_annotation_logticks.py
Class Name:
Method Name: test_annotation_logticks_coord_flip


Project Name: has2k1/plotnine
Commit Name: 61359b01bbafa7a98ad614835159705d9003476a
Time: 2018-12-28
Author: has2k1@gmail.com
File Name: plotnine/tests/test_annotation_logticks.py
Class Name:
Method Name: test_annotation_logticks


Project Name: has2k1/plotnine
Commit Name: a85342eee955a8630719678d96cd96e96cdcf6b2
Time: 2019-08-14
Author: has2k1@gmail.com
File Name: plotnine/tests/test_annotation_stripes.py
Class Name:
Method Name: test_annotation_stripes_coord_flip