Skip to content

Commit 4f48b29

Browse files
committed
bounds are found automatically in plotting function
1 parent 4045846 commit 4f48b29

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

bin/findFmaxDist.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,9 +293,11 @@ def plotDist(vec, bounds):
293293
return
294294

295295

296-
def plotGammaFunction(vec, results=None, params=None, bounds=[0,5]):
296+
def plotGammaFunction(vec, results=None, params=None, bounds=None):
297297
""" Take vector and fit and plot distribution. """
298-
# plot pdf
298+
# plot pdf
299+
if bounds is None:
300+
bounds = np.percentile(vec, [0,100])
299301
plotDist(vec, bounds)
300302
more_x = np.linspace(*bounds, num=100)
301303

0 commit comments

Comments
 (0)