Skip to content

Commit 513ee70

Browse files
authored
give skip a minimum value (#154)
1 parent 2679d08 commit 513ee70

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

RATapi/utils/plotting.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -833,7 +833,9 @@ def plot_chain(
833833
"""
834834
chain = results.chain
835835
nsimulations, nplots = chain.shape
836-
skip = floor(nsimulations / maxpoints) # to evenly distribute points plotted
836+
# skip is to evenly distribute points plotted
837+
# all points will be plotted if maxpoints < nsimulations
838+
skip = max(floor(nsimulations / maxpoints), 1)
837839

838840
# convert names to indices if given
839841
fitname_to_index = partial(name_to_index, names=results.fitNames)

0 commit comments

Comments
 (0)