newTableXY returns a new XY plot view onto the given IndexView of table.Table (makes a copy), from given column indexes, and tensor indexes within each cell. Column indexes are enforced to be valid, with an error message if they are not.
(dt *table.IndexView, xcol, xtsrIndex, ycol, ytsrIndex int, yrng minmax.Range32)
| 53 | // from given column indexes, and tensor indexes within each cell. |
| 54 | // Column indexes are enforced to be valid, with an error message if they are not. |
| 55 | func newTableXY(dt *table.IndexView, xcol, xtsrIndex, ycol, ytsrIndex int, yrng minmax.Range32) (*tableXY, error) { |
| 56 | txy := &tableXY{table: dt.Clone(), xColumn: xcol, yColumn: ycol, xIndex: xtsrIndex, yIndex: ytsrIndex, yRange: yrng} |
| 57 | return txy, txy.validate() |
| 58 | } |
| 59 | |
| 60 | // newTableXYName returns a new XY plot view onto the given IndexView of table.Table (makes a copy), |
| 61 | // from given column name and tensor indexes within each cell. |
no test coverage detected