summaryrefslogtreecommitdiffstats
path: root/pkg/plot/datatable.go
blob: 15cbff451c0dd04562ba6136750deb7c1c372c42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package plot

type DataTable struct {
	Columns []string
	Rows    [][]float64
}

func (d *DataTable) AddColumn(name string) {
	d.Columns = append(d.Columns, name)
}

func (d *DataTable) AddRow(elms ...float64) {
	d.Rows = append(d.Rows, elms)
}