Skip to content

Commit

Permalink
plot: Increase thickness of lines (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
jharshman committed Aug 9, 2021
1 parent 1e822c5 commit d90e5a1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tsplot/plot.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down Expand Up @@ -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]

Expand Down

0 comments on commit d90e5a1

Please sign in to comment.