def test_position_nudge(): p = (ggplot(df, aes('x', 'y')) + geom_boxplot(position=position_nudge(x=-0.1), size=2)) assert p == 'position_nudge'
def test_nudge(): p = (ggplot(df1, aes('x', 'y')) + geom_point(size=10) + geom_point(size=10, color='red', position=position_nudge(.25, .25))) assert p + _theme == 'nudge'