Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion RATapi/utils/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down