diff --git a/code/thinkplot.py b/code/thinkplot.py index c5c46238..b52fc0b8 100644 --- a/code/thinkplot.py +++ b/code/thinkplot.py @@ -527,7 +527,7 @@ def Cdf(cdf, complement=False, transform=None, **options): scale['yscale'] = 'log' if transform == 'gumbel': - xs = xp.delete(xs, 0) + xs = np.delete(xs, 0) ps = np.delete(ps, 0) ps = [-math.log(p) for p in ps] scale['yscale'] = 'log'