From d90e5a12439a611f8a7aeb7d72b4aca93bad849b Mon Sep 17 00:00:00 2001 From: Joshua Harshman Date: Mon, 9 Aug 2021 14:29:01 -0600 Subject: [PATCH] plot: Increase thickness of lines (#11) --- tsplot/plot.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tsplot/plot.go b/tsplot/plot.go index ec2ac1f..099549f 100644 --- a/tsplot/plot.go +++ b/tsplot/plot.go @@ -2,8 +2,10 @@ package tsplot import ( "errors" + "gonum.org/v1/plot" "gonum.org/v1/plot/plotter" + "gonum.org/v1/plot/vg" monitoringpb "google.golang.org/genproto/googleapis/monitoring/v3" ) @@ -45,6 +47,9 @@ func (ts TimeSeries) Plot(opts ...PlotOption) (*plot.Plot, error) { return nil, err } + // width of the line + line.Width = vg.Points(2) + // color the line line.Color = lineColors[limit]