from __future__ import (absolute_import, division, print_function,
                        unicode_literals)

from nose.tools import assert_is_instance
from ggplot.tests import image_comparison

from ggplot import *

@image_comparison(baseline_images=['theme_seaborn'])
def test_theme_matplotlib2():
    gg = ggplot(aes(x='date', y='beef'), data=meat) + \
        geom_point(color='lightblue') + \
        stat_smooth(span=.15, color='black', se=True) + \
        ggtitle("Beef: It's What's for Dinner") + \
        xlab("Date") + \
        ylab("Head of Cattle Slaughtered")
    gg_theme = gg + theme_seaborn()
    assert_is_instance(gg_theme.theme, theme_seaborn)
    print(gg_theme)

from __future__ import (absolute_import, division, print_function,
                        unicode_literals)

from nose.tools import assert_is_instance
from ggplot.tests import image_comparison

from ggplot import *

@image_comparison(baseline_images=['theme_seaborn'])
def test_theme_matplotlib2():
    gg = ggplot(aes(x='date', y='beef'), data=meat) + \
        geom_point(color='lightblue') + \
        stat_smooth(span=.15, color='black', se=True) + \
        ggtitle("Beef: It's What's for Dinner") + \
        xlab("Date") + \
        ylab("Head of Cattle Slaughtered")
    gg_theme = gg + theme_seaborn()
    assert_is_instance(gg_theme.theme, theme_seaborn)
    print(gg_theme)
