diff --git a/RATapi/utils/plotting.py b/RATapi/utils/plotting.py index 12ab5068..8301dea4 100644 --- a/RATapi/utils/plotting.py +++ b/RATapi/utils/plotting.py @@ -833,7 +833,9 @@ def plot_chain( """ chain = results.chain nsimulations, nplots = chain.shape - skip = floor(nsimulations / maxpoints) # to evenly distribute points plotted + # skip is to evenly distribute points plotted + # all points will be plotted if maxpoints < nsimulations + skip = max(floor(nsimulations / maxpoints), 1) # convert names to indices if given fitname_to_index = partial(name_to_index, names=results.fitNames)