Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion blog.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"cogentcore.org/core/htmlcore"
"cogentcore.org/core/icons"
"cogentcore.org/core/tree"
_ "cogentcore.org/core/yaegicore"
_ "cogentcore.org/lab/yaegilab"
)

//go:embed content
Expand Down
26 changes: 15 additions & 11 deletions content/initial-release.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,18 +64,22 @@ Again, you can modify any of the code above and immediately see the effects!

You can even make interactive plots of data:

```Go
type Data struct {
Time float32
Users float32
Profit float32
```Goal
func plot() {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So goal does not automatically wrap things in functions? yaegicore does, but it looks like only for Go

type Data struct {
Time float32
Users float32
Profit float32
}

plotcore.NewEditor(b).SetSlice([]Data{
{0, 500, 1520},
{1, 800, 860},
{2, 1600, 930},
{3, 1400, 682},
})
}
plotcore.NewPlotEditor(b).SetSlice([]Data{
{0, 500, 1520},
{1, 800, 860},
{2, 1600, 930},
{3, 1400, 682},
})
plot()
```

## Key features
Expand Down