From a166b2f86fcc76e0655c54787005a86084c7456c Mon Sep 17 00:00:00 2001 From: AdamOrmondroyd Date: Tue, 20 Aug 2024 19:05:51 +0100 Subject: [PATCH] replace=True? --- fgivenx/plot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fgivenx/plot.py b/fgivenx/plot.py index 8b61596..dca84fc 100644 --- a/fgivenx/plot.py +++ b/fgivenx/plot.py @@ -138,7 +138,7 @@ def plot_lines(x, fsamps, ax=None, downsample=100, **kwargs): if ax is None: ax = matplotlib.pyplot.gca() if downsample < len(fsamps.T): - indices = numpy.random.choice(len(fsamps.T), downsample, replace=False) + indices = numpy.random.choice(len(fsamps.T), downsample, replace=True) else: indices = numpy.arange(len(fsamps.T)) color = kwargs.pop('color', 'k')