# 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


from builtins import object
from abc import abstractmethod, ABCMeta
from pandas import DataFrame
from trappy.utils import listify
from functools import reduce
from future.utils import with_metaclass
import re
            color = [int(n, 16) if n.startswith("0x") else int(n) for n in color_list]
        else:
            color = None

        try:
            return self._event_map[event], column, color
        except KeyError:
            for trace in listify(self.traces):

                if event in trace.class_definitions:
                    self._event_map[event] = trace.class_definitions[event]
                    return self._event_map[event], column, color

            raise ValueError(
                "Event: " +
                event +
                " not found in Trace Object")

    def _describe_signals(self):
        """Internal Function for populating templates and columns
        from signals
        """

        if "column" in self._attr or self.templates:
            raise ValueError("column/templates specified with values")

        self._attr["column"] = []
        self.templates = []
        colors = []


# 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/AbstractDataPlotter.py
from builtins import object
from abc import abstractmethod, ABCMeta
from pandas import DataFrame
from trappy.utils import listify
from functools import reduce
from future.utils import with_metaclass
import re

            color = [int(n, 16) if n.startswith("0x") else int(n) for n in color_list]
        else:
            color = None

        try:
            return self._event_map[event], column, color
        except KeyError:
            for trace in listify(self.traces):

                if event in trace.class_definitions:
                    self._event_map[event] = trace.class_definitions[event]
                    return self._event_map[event], column, color

            raise ValueError(
                "Event: " +
                event +
                " not found in Trace Object")

    def _describe_signals(self):
        """Internal Function for populating templates and columns
        from signals
        """

        if "column" in self._attr or self.templates:
            raise ValueError("column/templates specified with values")

        self._attr["column"] = []
        self.templates = []
        colors = []


        for value in listify(self._attr["signals"]):