# Path: trappy/plotter/Utils.py
# def decolonize(val):
#     """Remove the colon at the end of the word
#     This will be used by the unique word of
#     template class to sanitize attr accesses
#     """
# 
#     return val.strip(":")
# 
# def normalize_list(val, lst):
#     """Normalize a unitary list"""
# 
#     if len(lst) != 1:
#         raise RuntimeError("Cannot Normalize a non-unitary list")
# 
#     return lst * val
# 
# Path: trappy/utils.py
# def listify(to_select):
#     """Utitlity function to handle both single and
#     list inputs
#     """
# 
#     if not isinstance(to_select, list):
#         to_select = [to_select]
# 
#     return to_select
# 
# Path: trappy/plotter/AttrConf.py
# WIDTH = 7
# LENGTH = 7
# PER_LINE = 2
# CONCAT = False
# PIVOT = "__TRAPPY_PIVOT_DEFAULT"
# PIVOT_VAL = "__TRAPPY_DEFAULT_PIVOT_VAL"
# XLIM = None
# YLIM = None
# FILL = False
# ALPHA = 0.75
# TITLE = None
# TITLE_SIZE = 24
# LEGEND_NCOL = 3
# MPL_STYLE = {
#     'axes.axisbelow': True,
#     'axes.edgecolor': '#bcbcbc',
#     'axes.facecolor': 'white',
#     'axes.grid': True,
#     'axes.labelcolor': '#555555',
#     'axes.labelsize': 'large',
#     'axes.linewidth': 1.0,
#     'axes.titlesize': 'x-large',
#     'figure.edgecolor': 'white',
#     'figure.facecolor': 'white',
#     'figure.figsize': (6.0, 4.0),
#     'figure.subplot.hspace': 0.5,
#     'font.size': 10,
#     'interactive': True,
#     'keymap.all_axes': ['a'],
#     'keymap.back': ['left', 'c', 'backspace'],
#     'keymap.forward': ['right', 'v'],
#     'keymap.fullscreen': ['f'],
#     'keymap.grid': ['g'],
#     'keymap.home': ['h', 'r', 'home'],
#     'keymap.pan': ['p'],
#     'keymap.save': ['s'],
#     'keymap.xscale': ['L', 'k'],
#     'keymap.yscale': ['l'],
#     'keymap.zoom': ['o'],
#     'legend.fancybox': True,
#     'lines.antialiased': True,
#     'lines.linewidth': 1.0,
#     'patch.antialiased': True,
#     'patch.edgecolor': '#EEEEEE',
#     'patch.facecolor': '#348ABD',
#     'patch.linewidth': 0.5,
#     'toolbar': 'toolbar2',
#     'xtick.color': '#555555',
#     'xtick.direction': 'in',
#     'xtick.major.pad': 6.0,
#     'xtick.major.size': 0.0,
#     'xtick.minor.pad': 6.0,
#     'xtick.minor.size': 0.0,
#     'ytick.color': '#555555',
#     'ytick.direction': 'in',
#     'ytick.major.pad': 6.0,
#     'ytick.major.size': 0.0,
#     'ytick.minor.pad': 6.0,
#     'ytick.minor.size': 0.0
# }
# ARGS_TO_FORWARD = [
#     "marker",
#     "markersize",
#     "markevery",
#     "linestyle",
#     "linewidth",
#     "drawstyle"]
# HTML_HEIGHT = 400
# DEFAULT_SYNC_ZOOM = False
# EVENT_PLOT_STRIDE = False
# PLOT_SCATTER = False
# POINT_SIZE = 2
# LINE_WIDTH = 1.0


from builtins import map
from builtins import str
from builtins import range
from builtins import object
from trappy.plotter.Utils import decolonize, normalize_list
from trappy.utils import listify
from trappy.plotter import AttrConf
            val_series = values[criterion]
            if len(val_series) != 0:
                result[pivot_val] = val_series

        return result

    def _uses_trappy_trace(self):
        if not self._template:
            return False
        else:
            return True

    def populate_data_frame(self):
        """Return the populated :mod:`pandas.DataFrame`"""
        if not self._uses_trappy_trace():
            return self._trappy_trace

        data_container = getattr(
            self._trappy_trace,
            decolonize(self._template.name))
        return data_container.data_frame

    def pivot_vals(self, data):
        """This method returns the unique pivot values for the
        Constraint's pivot and the column

        :param data: Input Data
        :type data: :mod:`pandas.DataFrame`
        """
        if self._pivot == AttrConf.PIVOT:

# Path: trappy/plotter/Utils.py
# def decolonize(val):
#     """Remove the colon at the end of the word
#     This will be used by the unique word of
#     template class to sanitize attr accesses
#     """
# 
#     return val.strip(":")
# 
# def normalize_list(val, lst):
#     """Normalize a unitary list"""
# 
#     if len(lst) != 1:
#         raise RuntimeError("Cannot Normalize a non-unitary list")
# 
#     return lst * val
# 
# Path: trappy/utils.py
# def listify(to_select):
#     """Utitlity function to handle both single and
#     list inputs
#     """
# 
#     if not isinstance(to_select, list):
#         to_select = [to_select]
# 
#     return to_select
# 
# Path: trappy/plotter/AttrConf.py
# WIDTH = 7
# LENGTH = 7
# PER_LINE = 2
# CONCAT = False
# PIVOT = "__TRAPPY_PIVOT_DEFAULT"
# PIVOT_VAL = "__TRAPPY_DEFAULT_PIVOT_VAL"
# XLIM = None
# YLIM = None
# FILL = False
# ALPHA = 0.75
# TITLE = None
# TITLE_SIZE = 24
# LEGEND_NCOL = 3
# MPL_STYLE = {
#     'axes.axisbelow': True,
#     'axes.edgecolor': '#bcbcbc',
#     'axes.facecolor': 'white',
#     'axes.grid': True,
#     'axes.labelcolor': '#555555',
#     'axes.labelsize': 'large',
#     'axes.linewidth': 1.0,
#     'axes.titlesize': 'x-large',
#     'figure.edgecolor': 'white',
#     'figure.facecolor': 'white',
#     'figure.figsize': (6.0, 4.0),
#     'figure.subplot.hspace': 0.5,
#     'font.size': 10,
#     'interactive': True,
#     'keymap.all_axes': ['a'],
#     'keymap.back': ['left', 'c', 'backspace'],
#     'keymap.forward': ['right', 'v'],
#     'keymap.fullscreen': ['f'],
#     'keymap.grid': ['g'],
#     'keymap.home': ['h', 'r', 'home'],
#     'keymap.pan': ['p'],
#     'keymap.save': ['s'],
#     'keymap.xscale': ['L', 'k'],
#     'keymap.yscale': ['l'],
#     'keymap.zoom': ['o'],
#     'legend.fancybox': True,
#     'lines.antialiased': True,
#     'lines.linewidth': 1.0,
#     'patch.antialiased': True,
#     'patch.edgecolor': '#EEEEEE',
#     'patch.facecolor': '#348ABD',
#     'patch.linewidth': 0.5,
#     'toolbar': 'toolbar2',
#     'xtick.color': '#555555',
#     'xtick.direction': 'in',
#     'xtick.major.pad': 6.0,
#     'xtick.major.size': 0.0,
#     'xtick.minor.pad': 6.0,
#     'xtick.minor.size': 0.0,
#     'ytick.color': '#555555',
#     'ytick.direction': 'in',
#     'ytick.major.pad': 6.0,
#     'ytick.major.size': 0.0,
#     'ytick.minor.pad': 6.0,
#     'ytick.minor.size': 0.0
# }
# ARGS_TO_FORWARD = [
#     "marker",
#     "markersize",
#     "markevery",
#     "linestyle",
#     "linewidth",
#     "drawstyle"]
# HTML_HEIGHT = 400
# DEFAULT_SYNC_ZOOM = False
# EVENT_PLOT_STRIDE = False
# PLOT_SCATTER = False
# POINT_SIZE = 2
# LINE_WIDTH = 1.0


# Path: trappy/plotter/Constraint.py
from builtins import map
from builtins import str
from builtins import range
from builtins import object
from trappy.plotter.Utils import decolonize, normalize_list
from trappy.utils import listify
from trappy.plotter import AttrConf

            val_series = values[criterion]
            if len(val_series) != 0:
                result[pivot_val] = val_series

        return result

    def _uses_trappy_trace(self):
        if not self._template:
            return False
        else:
            return True

    def populate_data_frame(self):
        """Return the populated :mod:`pandas.DataFrame`"""
        if not self._uses_trappy_trace():
            return self._trappy_trace

        data_container = getattr(
            self._trappy_trace,
            decolonize(self._template.name))
        return data_container.data_frame

    def pivot_vals(self, data):
        """This method returns the unique pivot values for the
        Constraint's pivot and the column

        :param data: Input Data
        :type data: :mod:`pandas.DataFrame`
        """
        if self._pivot == AttrConf.PIVOT:

            return AttrConf.PIVOT_VAL