diff --git a/numbers/databrowser/filetree.go b/numbers/databrowser/filetree.go index cabc2916..48d8a29e 100644 --- a/numbers/databrowser/filetree.go +++ b/numbers/databrowser/filetree.go @@ -151,7 +151,7 @@ func (fn *FileNode) PlotFile() { core.ErrorSnackbar(br, err) } pl.SetTable(dt) - pl.Params.Title = df + pl.Options.Title = df br.Update() } } diff --git a/numbers/imports/cogentcore_org-core-plot-plotcore.go b/numbers/imports/cogentcore_org-core-plot-plotcore.go index f81f1a10..be20d77f 100644 --- a/numbers/imports/cogentcore_org-core-plot-plotcore.go +++ b/numbers/imports/cogentcore_org-core-plot-plotcore.go @@ -31,9 +31,9 @@ func init() { "XY": reflect.ValueOf(plotcore.XY), // type definitions - "ColumnParams": reflect.ValueOf((*plotcore.ColumnParams)(nil)), + "ColumnParams": reflect.ValueOf((*plotcore.ColumnOptions)(nil)), "Plot": reflect.ValueOf((*plotcore.Plot)(nil)), - "PlotParams": reflect.ValueOf((*plotcore.PlotParams)(nil)), + "PlotParams": reflect.ValueOf((*plotcore.PlotOptions)(nil)), "PlotTypes": reflect.ValueOf((*plotcore.PlotTypes)(nil)), "PlotEditor": reflect.ValueOf((*plotcore.PlotEditor)(nil)), "TableXY": reflect.ValueOf((*plotcore.TableXY)(nil)), diff --git a/numbers/random/random.go b/numbers/random/random.go index b87c9415..74b070c2 100644 --- a/numbers/random/random.go +++ b/numbers/random/random.go @@ -113,13 +113,13 @@ func (rd *Random) ConfigTable(dt *table.Table) { } func (rd *Random) ConfigPlot(plt *plotcore.PlotEditor, dt *table.Table) *plotcore.PlotEditor { - plt.Params.Title = "Random distribution histogram" - plt.Params.XAxisColumn = "Value" - plt.Params.Type = plotcore.Bar - plt.Params.XAxisRotation = 45 + plt.Options.Title = "Random distribution histogram" + plt.Options.XAxisColumn = "Value" + plt.Options.Type = plotcore.Bar + plt.Options.XAxisRotation = 45 plt.SetTable(dt) - plt.SetColParams("Value", plotcore.Off, plotcore.FloatMin, 0, plotcore.FloatMax, 0) - plt.SetColParams("Count", plotcore.On, plotcore.FixMin, 0, plotcore.FloatMax, 0) + plt.SetColumnOptions("Value", plotcore.Off, plotcore.FloatMin, 0, plotcore.FloatMax, 0) + plt.SetColumnOptions("Count", plotcore.On, plotcore.FixMin, 0, plotcore.FloatMax, 0) return plt }