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

Style 'linepoints' is not working. #16

Open
ghost opened this issue Feb 28, 2018 · 0 comments
Open

Style 'linepoints' is not working. #16

ghost opened this issue Feb 28, 2018 · 0 comments

Comments

@ghost
Copy link

ghost commented Feb 28, 2018

Here is what i tried:

dimensions := 2
plot, _ := glot.NewPlot(dimensions, true, true)
fct := func(x float64) float64 { return math.Sin(x) }
groupName := "Sin Curve"
style := "linepoints"
var pointsX []float64
i := 0.0
for i < 50000{
	pointsX = append(pointsX, i/500)
	i += 1
}
plot.AddFunc2d(groupName, style, pointsX, fct)
plot.SavePlot("1.png")

The debug log showed nothing about style:

cmd> plot "/tmp/go-gnuplot-553750972" title "Sin Curve" with linepoints
res> 67
cmd> set terminal png
res> 17
cmd> set output'1.png'
res> 18
cmd> replot  
res> 9

But nothing happened, and the '1.png' is empty.
did i do something wrong?
thanks

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

0 participants