Skip to content

Commit

Permalink
update to Params to Options rename
Browse files Browse the repository at this point in the history
  • Loading branch information
kkoreilly committed Jul 5, 2024
1 parent faa3696 commit bd36585
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion numbers/databrowser/filetree.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}
Expand Down
4 changes: 2 additions & 2 deletions numbers/imports/cogentcore_org-core-plot-plotcore.go

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

12 changes: 6 additions & 6 deletions numbers/random/random.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit bd36585

Please sign in to comment.