'For internal use'

def plotting_proc(self, g):

    survival = self.results[g][0]
    t = self.ts[g]
    e = self.event[g]
    if (self.censoring != None):
        c = self.censorings[g]
        csurvival = survival[(c != 0)]
        ct = t[(c != 0)]
        if (len(ct) != 0):
            plt.vlines(ct, (csurvival + 0.02), (csurvival - 0.02))
    x = np.repeat(t[(e != 0)], 2)
    y = np.repeat(survival[(e != 0)], 2)
    if (self.ts[g][(-1)] in t[(e != 0)]):
        x = np.r_[(0, x)]
        y = np.r_[(1, 1, y[:(-1)])]
    else:
        x = np.r_[(0, x, self.ts[g][(-1)])]
        y = np.r_[(1, 1, y)]
    plt.plot(x, y)
