From 58647f903d2a463bcc3306bf84ade8121a223c91 Mon Sep 17 00:00:00 2001 From: "Alex H. Room" <69592136+alexhroom@users.noreply.github.com> Date: Tue, 29 Apr 2025 10:58:55 +0100 Subject: [PATCH] give `skip` a minimum value --- RATapi/utils/plotting.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)