MCPcopy Create free account
hub / github.com/cogentcore/core / SetColumnTensorDisplay

Method SetColumnTensorDisplay

tensor/tensorcore/table.go:396–408  ·  view source on GitHub ↗

SetColumnTensorDisplay sets per-column tensor display params and returns them if already set, just returns them

(col int)

Source from the content-addressed store, hash-verified

394// SetColumnTensorDisplay sets per-column tensor display params and returns them
395// if already set, just returns them
396func (tb *Table) SetColumnTensorDisplay(col int) *TensorDisplay {
397 if ctd, has := tb.ColumnTensorDisplay[col]; has {
398 return ctd
399 }
400 ctd := &TensorDisplay{}
401 *ctd = tb.TensorDisplay
402 if tb.Table != nil {
403 cl := tb.Table.Table.Columns[col]
404 ctd.FromMeta(cl)
405 }
406 tb.ColumnTensorDisplay[col] = ctd
407 return ctd
408}
409
410// NewAt inserts a new blank element at given index in the slice -- -1
411// means the end

Callers 2

TensorDisplayActionMethod · 0.95

Implementers 1

_cogentcore_org_core_plot_plots_Tableyaegicore/symbols/cogentcore_org-core-

Calls 1

FromMetaMethod · 0.95

Tested by

no test coverage detected