...可以使用plotter提供的接口实现自己的绘图器; plotutil:为绘制常见图形提供简便的方法; vg:封装各种后端,并提供了一个通用矢量图形 API。...(func(x float64) float64 { return x * x }) square.Color = plotutil.Color(0) sqrt := plotter.NewFunction...= nil { log.Fatal(err) } } 首先调用...