Skip to content

Commit

Permalink
fix(heatmap): fix bug legend was not fully boxed (#585)
Browse files Browse the repository at this point in the history
  • Loading branch information
floaust committed Nov 5, 2023
1 parent 0da129d commit b21f84e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions heatmap_printer.go
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ func (p HeatmapPrinter) generateColorLegend(buffer *bytes.Buffer, legendColWidth
}

func (p HeatmapPrinter) generateRGBLegend(buffer *bytes.Buffer, legendColWidth int) {
p.rgbLegendValue = 11
p.rgbLegendValue = 10
steps := len(p.RGBRange)
if steps < p.rgbLegendValue {
steps = p.rgbLegendValue
Expand Down Expand Up @@ -585,7 +585,7 @@ func (p HeatmapPrinter) boxLegend(buffer *bytes.Buffer, legend string, legendCol
}

func (p HeatmapPrinter) generateSeparatorRow(buffer *bytes.Buffer, legend string, legendColWidth int, top bool) {
p.rgbLegendValue = 11
p.rgbLegendValue = 10
steps := len(p.RGBRange)
if steps < p.rgbLegendValue {
steps = p.rgbLegendValue
Expand Down

0 comments on commit b21f84e

Please sign in to comment.