Beispiel #1
0
def test_diamond():
    p = ggplot(aes(x='x', y='y', colour='z'), data=diamonds.head(4))
    p = p + geom_point() + scale_colour_gradient(low="white", high="red")
    p = p + facet_wrap("cut")
    assert_same_ggplot(p, "diamonds_small")
Beispiel #2
0
def test_diamond():
    p = ggplot(aes(x='x', y='y', colour='z'), data=diamonds.head(4))
    p = p + geom_point() + scale_colour_gradient(low="white", high="red")
    p = p + facet_wrap("cut")
    assert_same_ggplot(p, "diamonds_small")
Beispiel #3
0
def test_diamond():
    p = ggplot(aes(x="x", y="y", colour="z"), data=diamonds.head(4))
    p = p + geom_point() + scale_colour_gradient(low="white", high="red")
    p = p + facet_wrap("cut")
    print(p)