Skip to content

Commit

Permalink
remove range smaller than 1 for cumulative histogram
Browse files Browse the repository at this point in the history
  • Loading branch information
Iara Ota committed Nov 14, 2023
1 parent 37cafd0 commit 23c97f8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions gwsumm/plot/builtin.py
Original file line number Diff line number Diff line change
Expand Up @@ -722,6 +722,11 @@ def draw(self, outputfile=None):
xlim=None if ax.get_autoscalex_on() else ax.get_xlim(),
)

# Remove data with range smaller than 1 Mpc for cumulative plot
if self.type == 'range-cumulative-histogram':
arr = numpy.array(arr)
arr = arr[arr>=1]

# plot histogram
_, _, patches = ax.hist(arr, **pargs)

Expand Down

0 comments on commit 23c97f8

Please sign in to comment.