vg/vgpdf: pdfs don't render circle glyphs properly
Created by: btracey
Example code:
package main
import (
"gonum.org/v1/plot"
"gonum.org/v1/plot/plotter"
"gonum.org/v1/plot/vg"
)
func main() {
pts := plotter.XYs{{1, 1}, {2, 2}, {3, 3}, {1.5, 2}, {2.5, 1}}
scat, err := plotter.NewScatter(pts)
if err != nil {
panic(err)
}
p, err := plot.New()
if err != nil {
panic(err)
}
p.Add(scat)
p.Save(5*vg.Inch, 3*vg.Inch, "plt.pdf")
p.Save(5*vg.Inch, 3*vg.Inch, "plt.png")
}
The png file looks normal
The pdf, however, renders the circles with dashed lines instead of solid ones. plt.pdf
I suspect this is related to using gofpdf
, because this problem surfaced when I pulled to the current master.
cc @sbinet