@@ -311,22 +311,22 @@ func (d *Display) Write(buffers [][]float64, channels int) error {
311311
312312 switch d .drawType {
313313 case DrawUp :
314- d .DrawUp (buffers , channels , scale )
314+ d .drawUp (buffers , channels , scale )
315315
316316 case DrawUpDown :
317- d .DrawUpDown (buffers , channels , scale )
317+ d .drawUpDown (buffers , channels , scale )
318318
319319 case DrawDown :
320- d .DrawDown (buffers , channels , scale )
320+ d .drawDown (buffers , channels , scale )
321321
322322 case DrawLeft :
323- d .DrawLeft (buffers , channels , scale )
323+ d .drawLeft (buffers , channels , scale )
324324
325325 case DrawLeftRight :
326- d .DrawLeftRight (buffers , channels , scale )
326+ d .drawLeftRight (buffers , channels , scale )
327327
328328 case DrawRight :
329- d .DrawRight (buffers , channels , scale )
329+ d .drawRight (buffers , channels , scale )
330330
331331 default :
332332 return nil
@@ -433,8 +433,8 @@ func sizeAndCap(value float64, space int, zeroBase bool, baseRune rune) (int, ru
433433
434434// DRAWING METHODS
435435
436- // DrawUp will draw up.
437- func (d * Display ) DrawUp (bins [][]float64 , channelCount int , scale float64 ) {
436+ // drawUp will draw up.
437+ func (d * Display ) drawUp (bins [][]float64 , channelCount int , scale float64 ) {
438438 binCount := d .Bins (channelCount )
439439 barSpace := intMax (d .termHeight - d .baseSize , 0 )
440440 scale = float64 (barSpace ) / scale
@@ -474,8 +474,8 @@ func (d *Display) DrawUp(bins [][]float64, channelCount int, scale float64) {
474474 }
475475}
476476
477- // DrawUpDown will draw up and down.
478- func (d * Display ) DrawUpDown (bins [][]float64 , channelCount int , scale float64 ) {
477+ // drawUpDown will draw up and down.
478+ func (d * Display ) drawUpDown (bins [][]float64 , channelCount int , scale float64 ) {
479479 binCount := d .Bins (channelCount )
480480 centerStart := intMax ((d .termHeight - d .baseSize )/ 2 , 0 )
481481 centerStop := centerStart + d .baseSize
@@ -521,8 +521,8 @@ func (d *Display) DrawUpDown(bins [][]float64, channelCount int, scale float64)
521521 }
522522}
523523
524- // DrawDown will draw down.
525- func (d * Display ) DrawDown (bins [][]float64 , channelCount int , scale float64 ) {
524+ // drawDown will draw down.
525+ func (d * Display ) drawDown (bins [][]float64 , channelCount int , scale float64 ) {
526526 binCount := d .Bins (channelCount )
527527 barSpace := intMax (d .termHeight - d .baseSize , 0 )
528528 scale = float64 (barSpace ) / scale
@@ -566,7 +566,7 @@ func (d *Display) DrawDown(bins [][]float64, channelCount int, scale float64) {
566566 }
567567}
568568
569- func (d * Display ) DrawLeft (bins [][]float64 , channelCount int , scale float64 ) {
569+ func (d * Display ) drawLeft (bins [][]float64 , channelCount int , scale float64 ) {
570570 binCount := d .Bins (channelCount )
571571 barSpace := intMax (d .termWidth - d .baseSize , 0 )
572572 scale = float64 (barSpace ) / scale
@@ -606,8 +606,8 @@ func (d *Display) DrawLeft(bins [][]float64, channelCount int, scale float64) {
606606 }
607607}
608608
609- // DrawLeftRight will draw left and right.
610- func (d * Display ) DrawLeftRight (bins [][]float64 , channelCount int , scale float64 ) {
609+ // drawLeftRight will draw left and right.
610+ func (d * Display ) drawLeftRight (bins [][]float64 , channelCount int , scale float64 ) {
611611 binCount := d .Bins (channelCount )
612612 centerStart := intMax ((d .termWidth - d .baseSize )/ 2 , 0 )
613613 centerStop := centerStart + d .baseSize
@@ -656,7 +656,7 @@ func (d *Display) DrawLeftRight(bins [][]float64, channelCount int, scale float6
656656 }
657657}
658658
659- func (d * Display ) DrawRight (bins [][]float64 , channelCount int , scale float64 ) {
659+ func (d * Display ) drawRight (bins [][]float64 , channelCount int , scale float64 ) {
660660 binCount := d .Bins (channelCount )
661661 barSpace := intMax (d .termWidth - d .baseSize , 0 )
662662 scale = float64 (barSpace ) / scale
0 commit comments