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

Method GetColumnTensorDisplay

tensor/tensorcore/table.go:381–392  ·  view source on GitHub ↗

GetColumnTensorDisplay returns tensor display parameters for this column either the overall defaults or the per-column if set

(col int)

Source from the content-addressed store, hash-verified

379// GetColumnTensorDisplay returns tensor display parameters for this column
380// either the overall defaults or the per-column if set
381func (tb *Table) GetColumnTensorDisplay(col int) *TensorDisplay {
382 if ctd, has := tb.ColumnTensorDisplay[col]; has {
383 return ctd
384 }
385 if tb.Table != nil {
386 cl := tb.Table.Table.Columns[col]
387 if len(cl.MetaDataMap()) > 0 {
388 return tb.SetColumnTensorDisplay(col)
389 }
390 }
391 return &tb.TensorDisplay
392}
393
394// SetColumnTensorDisplay sets per-column tensor display params and returns them
395// if already set, just returns them

Callers 1

MakeRowMethod · 0.95

Implementers 1

_cogentcore_org_core_plot_plots_Tableyaegicore/symbols/cogentcore_org-core-

Calls 2

MetaDataMapMethod · 0.65

Tested by

no test coverage detected