Skip to content

Commit d90e5a1

Browse files
authored
plot: Increase thickness of lines (#11)
1 parent 1e822c5 commit d90e5a1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tsplot/plot.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@ package tsplot
22

33
import (
44
"errors"
5+
56
"gonum.org/v1/plot"
67
"gonum.org/v1/plot/plotter"
8+
"gonum.org/v1/plot/vg"
79
monitoringpb "google.golang.org/genproto/googleapis/monitoring/v3"
810
)
911

@@ -45,6 +47,9 @@ func (ts TimeSeries) Plot(opts ...PlotOption) (*plot.Plot, error) {
4547
return nil, err
4648
}
4749

50+
// width of the line
51+
line.Width = vg.Points(2)
52+
4853
// color the line
4954
line.Color = lineColors[limit]
5055

0 commit comments

Comments
 (0)