Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-sc must be specified for -sl to work #60

Open
shuckster opened this issue Nov 2, 2024 · 0 comments
Open

-sc must be specified for -sl to work #60

shuckster opened this issue Nov 2, 2024 · 0 comments

Comments

@shuckster
Copy link

ie; -sc red,blue -sl x,y will work, but -sl x,y will result in:

panic: runtime error: index out of range [0] with length 0

goroutine 1 [running]:
github.com/guptarohit/asciigraph.addLegends(0x140000efaa8, 0x140000dc000, 0x32, 0x9)
        /Users/mostly/go/pkg/mod/github.com/guptarohit/[email protected]/legend.go:31 +0x1d4
github.com/guptarohit/asciigraph.PlotMany({0x140000a04e0, 0x2, 0x102e4efb8?}, {0x14000098e18, 0xc, 0x102e2ecfe?})
        /Users/mostly/go/pkg/mod/github.com/guptarohit/[email protected]/asciigraph.go:261 +0xb84
main.main()
        /Users/mostly/go/pkg/mod/github.com/guptarohit/[email protected]/cmd/asciigraph/main.go:174 +0xabc

Regardless, I really appreciate the tool, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant