from __future__ import (absolute_import, division, print_function,
                        unicode_literals)
# For testing purposes we might need to set mpl backend before any
# other import of matplotlib.
def _set_mpl_backend():
    import os
    import matplotlib as mpl

    env_backend = os.environ.get('MATPLOTLIB_BACKEND')
    if env_backend:
        # we were instructed
        mpl.use(env_backend)

_set_mpl_backend()

# This is the only place the version is specified and 
# used in both setup.py and docs/conf.py to set the 
# version of ggplot.
__version__ = '0.6.8'

from .qplot import qplot
from .ggplot import ggplot
from .components import aes
from .coords import *
from .geoms import *
from .stats import *
from .scales import *
from .themes import *
from .utils import *
from .exampledata import (diamonds,mtcars,meat,pageviews,movies)
