File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -536,6 +536,7 @@ def plotHigherOrderMomentsData(
536536 table : Table ,
537537 prefix : str = "" ,
538538 binSpacing : float = 0.1 ,
539+ maxPointsPerDetector : int = 5 ,
539540):
540541 """Plot coma, trefoil and kurtosis from the table on the provided axes.
541542
@@ -549,7 +550,11 @@ def plotHigherOrderMomentsData(
549550 The prefix to use for the column names in the table.
550551 binSpacing : `float`, optional
551552 The spacing between arrows and triangles in the plot.
553+ maxPointsPerDetector : `int`, optional
554+ The maximum number of points per detector to plot. If the number of
555+ points exceeds this value, a random subset will be selected.
552556 """
557+ table = randomRowsPerDetector (table , maxPointsPerDetector )
553558 x = table [prefix + "x" ]
554559 y = table [prefix + "y" ]
555560 kurtosis = table ["kurtosis" ]
You can’t perform that action at this time.
0 commit comments