Open JerPatton opened 4 months ago
Try setting the line style. See https://pkg.go.dev/gonum.org/v1/plot/vg/draw#Canvas.SetLineStyle.
Unfortunately the arc is still not there.
Am I missing something in the process or is it indeed a bug? Could you maybe point me towards a working example using an Arc or a Path? So that I can test further.
Thanks in advance
The rings package makes extensive use of arcs, so maybe try looking there (example).
What are you trying to do?
I am trying to draw arcs on a plot and here as an example I specifically try to display an arc with center (0,0) and radius of 1 from the angle 0 to pi and save that to a .png file.
What did you do?
Here is a minimal working example of the code I used:
I tried to use the go playground and pic.ShowImage(img) as suggested but it won't compile. Still, find the link below if it can work for you... https://go.dev/play/p/KMPRsOUcO-0
What did you expect to happen?
It should draw the arc (line) as described above, i.e. we should see half a circle spanning from -1 to 1 with a radius of 1 on the side of the positive y-axis values.
What actually happened?
Nothing is drawn to the image except the axes and title.
What version of Go and Gonum/plot are you using?
go 1.20 gonum.org/v1/plot v0.13.0