# Path: corpkit/constants.py
# STRINGTYPE = str if PYTHON_VERSION == 3 else basestring
# 
# PYTHON_VERSION = sys.version_info.major


from corpkit.constants import STRINGTYPE, PYTHON_VERSION
        from IPython.utils.shimmodule import ShimWarning
    from matplotlib import rc
    from pandas import DataFrame, Series, MultiIndex
    from time import localtime, strftime
    from process import checkstack
        from mpld3 import plugins, utils
        from plugins import InteractiveLegendPlugin, HighlightLines
        from mpldatacursor import datacursor, HighlightingDataCursor
    from corpkit.interrogation import Interrogation
        from corpkit.interrogation import Interrodict
        from corpkit.process import urlify
    from matplotlib.colors import LinearSegmentedColormap
    from corpkit.interrogation import Interrogation
    from corpkit.layouts import layouts
        from corpkit.process import urlify
    import corpkit
    import os
        import warnings
        import seaborn as sns
    import matplotlib as mpl
        import matplotlib.pyplot as plt, mpld3
        import matplotlib.pyplot as plt
    import matplotlib.ticker as ticker
    import pandas
        import mpld3
        import collections
        import matplotlib.pyplot as nplt
        import matplotlib.colors as colors
        import numpy as np
        import os
        import warnings
    import matplotlib.pyplot as plt
                import matplotlib as mpl
        import os
            else:
                if was_series:
                    score = dataframe.T[w].sum()
                else:
                    score = dataframe[w].sum()
                if using_tex:
                    the_labs.append('%s (n=%d)' % (w, score))
                else:
                    the_labs.append('%s (n=%d)' % (w, score))
        if not was_series:
            dataframe.columns = the_labs
        else:
            vals = list(dataframe[list(dataframe.columns)[0]].values)
            dataframe = pandas.DataFrame(vals, index=the_labs)
            dataframe.columns = ['Total']
        return dataframe

    def auto_explode(dataframe, tinput, was_series = False, num_to_plot = 7):
        """give me a list of strings and i'll output explode option"""
        output = [0 for s in range(num_to_plot)]

        if was_series:
            l = list(dataframe.index)
        else:
            l = list(dataframe.columns)

        if isinstance(tinput, (STRINGTYPE, int)):
            tinput = [tinput]
        if isinstance(tinput, list):
            for i in tinput:

# Path: corpkit/constants.py
# STRINGTYPE = str if PYTHON_VERSION == 3 else basestring
# 
# PYTHON_VERSION = sys.version_info.major


# Path: corpkit/plotter.py
from corpkit.constants import STRINGTYPE, PYTHON_VERSION
        from IPython.utils.shimmodule import ShimWarning
    from matplotlib import rc
    from pandas import DataFrame, Series, MultiIndex
    from time import localtime, strftime
    from process import checkstack
        from mpld3 import plugins, utils
        from plugins import InteractiveLegendPlugin, HighlightLines
        from mpldatacursor import datacursor, HighlightingDataCursor
    from corpkit.interrogation import Interrogation
        from corpkit.interrogation import Interrodict
        from corpkit.process import urlify
    from matplotlib.colors import LinearSegmentedColormap
    from corpkit.interrogation import Interrogation
    from corpkit.layouts import layouts
        from corpkit.process import urlify
    import corpkit
    import os
        import warnings
        import seaborn as sns
    import matplotlib as mpl
        import matplotlib.pyplot as plt, mpld3
        import matplotlib.pyplot as plt
    import matplotlib.ticker as ticker
    import pandas
        import mpld3
        import collections
        import matplotlib.pyplot as nplt
        import matplotlib.colors as colors
        import numpy as np
        import os
        import warnings
    import matplotlib.pyplot as plt
                import matplotlib as mpl
        import os

            else:
                if was_series:
                    score = dataframe.T[w].sum()
                else:
                    score = dataframe[w].sum()
                if using_tex:
                    the_labs.append('%s (n=%d)' % (w, score))
                else:
                    the_labs.append('%s (n=%d)' % (w, score))
        if not was_series:
            dataframe.columns = the_labs
        else:
            vals = list(dataframe[list(dataframe.columns)[0]].values)
            dataframe = pandas.DataFrame(vals, index=the_labs)
            dataframe.columns = ['Total']
        return dataframe

    def auto_explode(dataframe, tinput, was_series = False, num_to_plot = 7):
        """give me a list of strings and i'll output explode option"""
        output = [0 for s in range(num_to_plot)]

        if was_series:
            l = list(dataframe.index)
        else:
            l = list(dataframe.columns)

        if isinstance(tinput, (STRINGTYPE, int)):
            tinput = [tinput]
        if isinstance(tinput, list):
            for i in tinput:

                if isinstance(i, STRINGTYPE):