def plot(self, ax=None):
     """
     Plots the CFD
     @param ax: MatPlotLib axis to plot into
     @return:
     """
     if ax is None:
         fig = plt.figure()
         ax = fig.add_subplot(111)
     ax.plot(self.prob, self.arr, linewidth=LINEWIDTH)
     ax.set_xlabel('$p(x)$')
     ax.set_ylabel('$x$')
    def plot(self, ax):
        """
        Plot this statistical characterization
        @param ax:  matplotlib index
        @return:
        """
        if ax is None:
            fig = plt.figure()
            ax = fig.add_subplot(111)

        for cdf in self.gen_P_laws:
            ax.plot(cdf.prob, cdf.data_sorted, color='r', marker='x')
        for cdf in self.load_P_laws:
            ax.plot(cdf.prob, cdf.data_sorted, color='g', marker='x')
        for cdf in self.load_Q_laws:
            ax.plot(cdf.prob, cdf.data_sorted, color='b', marker='x')
        ax.set_xlabel('$p(x)$')
        ax.set_ylabel('$x$')