diff options
Diffstat (limited to 'cmd/jp/hist.go')
-rw-r--r-- | cmd/jp/hist.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/jp/hist.go b/cmd/jp/hist.go index 77c04e6..c49f387 100644 --- a/cmd/jp/hist.go +++ b/cmd/jp/hist.go @@ -25,7 +25,7 @@ func histogramData(xv []reflect.Value, nbins uint) (groups []string, counts []fl bins := data.NewBins(x) bins.Number = int(nbins) if nbins == 0 { - bins.ChooseSturges() + bins.Number = data.BinsSturges(len(x)) } hist := data.Histogram(x, bins) groups = make([]string, len(hist)) |