# 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 object
from trappy.plotter import AttrConf
import matplotlib.pyplot as plt
        # Set boolean variables
        if num_plots == 1:
            self._single_plot = True
            self._scale_plot()
        elif self.rows == 1:
            self.usecol = True
        elif self.cols == 1:
            self.userow = True
            self._scale_plot()

        self._attr["figure"], self._attr["axes"] = plt.subplots(
            self.rows, self.cols, figsize=(
                self._attr["width"] * self.cols,
                self._attr["length"] * self.rows))

        if self._attr['title']:
            self._attr["figure"].suptitle(
                    self._attr['title'],
                    fontsize=AttrConf.TITLE_SIZE,
                    horizontalalignment='center')

    def _scale_plot(self):
        """Scale the graph in one
           plot per line use case"""

        self._attr["width"] = int(self._attr["width"] * 2.5)
        self._attr["length"] = int(self._attr["length"] * 1.25)

    def _set_defaults(self):
        """set the default attrs"""

# 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/PlotLayout.py
from builtins import object
from trappy.plotter import AttrConf
import matplotlib.pyplot as plt

        # Set boolean variables
        if num_plots == 1:
            self._single_plot = True
            self._scale_plot()
        elif self.rows == 1:
            self.usecol = True
        elif self.cols == 1:
            self.userow = True
            self._scale_plot()

        self._attr["figure"], self._attr["axes"] = plt.subplots(
            self.rows, self.cols, figsize=(
                self._attr["width"] * self.cols,
                self._attr["length"] * self.rows))

        if self._attr['title']:
            self._attr["figure"].suptitle(
                    self._attr['title'],
                    fontsize=AttrConf.TITLE_SIZE,
                    horizontalalignment='center')

    def _scale_plot(self):
        """Scale the graph in one
           plot per line use case"""

        self._attr["width"] = int(self._attr["width"] * 2.5)
        self._attr["length"] = int(self._attr["length"] * 1.25)

    def _set_defaults(self):
        """set the default attrs"""

        self._attr["width"] = AttrConf.WIDTH