Skip to content

Commit

Permalink
update to core rename of XAxisColumn and LegendColumn to XAxis and Le…
Browse files Browse the repository at this point in the history
…gend
  • Loading branch information
kkoreilly committed Jul 18, 2024
1 parent 45a3e9a commit 55d091a
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions egui/plots.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,12 @@ func ConfigPlotFromLog(title string, plt *plotcore.PlotEditor, lg *elog.Logs, ke
cp.ErrColumn = item.ErrCol

plt.Options.Title = title + " " + time + " Plot"
plt.Options.XAxisColumn = time
if xaxis, has := lt.Meta["XAxisColumn"]; has {
plt.Options.XAxisColumn = xaxis
plt.Options.XAxis = time
if xaxis, has := lt.Meta["XAxis"]; has {
plt.Options.XAxis = xaxis
}
if legend, has := lt.Meta["LegendColumn"]; has {
plt.Options.LegendColumn = legend
if legend, has := lt.Meta["Legend"]; has {
plt.Options.Legend = legend
}
}
plt.ColumnsFromMetaMap(lt.Table.MetaData)
Expand Down
2 changes: 1 addition & 1 deletion elog/table.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type LogTable struct {
// Actual data stored.
Table *table.Table

// arbitrary meta-data for each table, e.g., hints for plotting: Plot = false to not plot, XAxisColumn, LegendCol
// arbitrary meta-data for each table, e.g., hints for plotting: Plot = false to not plot, XAxis, LegendCol
Meta map[string]string

// Index View of the table -- automatically updated when a new row of data is logged to the table.
Expand Down
2 changes: 1 addition & 1 deletion elog/typegen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions estats/plots.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
func ConfigPCAPlot(plt *plotcore.PlotEditor, dt *table.Table, nm string) {
plt.Options.Title = nm
col1 := dt.ColumnName(1)
plt.Options.XAxisColumn = col1
plt.Options.XAxis = col1

Check failure on line 18 in estats/plots.go

View workflow job for this annotation

GitHub Actions / build

plt.Options.XAxis undefined (type plotcore.PlotOptions has no field or method XAxis)
plt.SetTable(dt)
plt.Options.Lines = false
plt.Options.Points = true
Expand All @@ -35,7 +35,7 @@ func ClustPlot(plt *plotcore.PlotEditor, ix *table.IndexView, colNm, lblNm strin
clust.Plot(pt, clust.Glom(smat, clust.ContrastDist), smat)
plt.Name = colNm
plt.Options.Title = "Cluster Plot of: " + nm + " " + colNm
plt.Options.XAxisColumn = "X"
plt.Options.XAxis = "X"

Check failure on line 38 in estats/plots.go

View workflow job for this annotation

GitHub Actions / build

plt.Options.XAxis undefined (type plotcore.PlotOptions has no field or method XAxis)
plt.SetTable(pt)
// order of params: on, fixMin, min, fixMax, max
plt.SetColumnOptions("X", plotcore.Off, plotcore.FixMin, 0, plotcore.FloatMax, 0)
Expand Down
2 changes: 1 addition & 1 deletion netview/netdata.go
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@ func (nv *NetView) PlotSelectedUnit() (*table.Table, *plotcore.PlotEditor) { //t
b := core.NewBody("netview-selectedunit").SetTitle("NetView SelectedUnit Plot: " + selnm)
plt := plotcore.NewPlotEditor(b)
plt.Options.Title = "NetView " + selnm
plt.Options.XAxisColumn = "Rec"
plt.Options.XAxis = "Rec"

Check failure on line 639 in netview/netdata.go

View workflow job for this annotation

GitHub Actions / build

plt.Options.XAxis undefined (type plotcore.PlotOptions has no field or method XAxis)

b.AddAppBar(plt.MakeToolbar)
dt := nd.SelectedUnitTable(nv.Di)
Expand Down

0 comments on commit 55d091a

Please sign in to comment.