MCPcopy
hub / github.com/pterm/pterm / WithData

Method WithData

heatmap_printer.go:127–130  ·  view source on GitHub ↗

WithData returns a new HeatmapPrinter with specific Data.

(data [][]float32)

Source from the content-addressed store, hash-verified

125
126// WithData returns a new HeatmapPrinter with specific Data.
127func (p HeatmapPrinter) WithData(data [][]float32) *HeatmapPrinter {
128 p.Data = data
129 return &p
130}
131
132// WithTextColor returns a new HeatmapPrinter with a specific TextColor.
133// This sets EnableComplementaryColor to false.

Callers 1

Calls

no outgoing calls

Tested by 1