Skip to content

Commit

Permalink
fix minimumSampleSep
Browse files Browse the repository at this point in the history
  • Loading branch information
wzshiming committed May 28, 2021
1 parent bdde518 commit c32eaa9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bar.go
Expand Up @@ -319,6 +319,9 @@ func (c *BarChart) Plot(g Graphics) {

func (c *BarChart) minimumSampleSep(d int) (min float64) {
n := len(c.Data[d].Samples) - 1
if n == 0 {
return 1
}
min = math.MaxFloat64

for i := 0; i < n; i++ {
Expand Down

0 comments on commit c32eaa9

Please sign in to comment.