MCPcopy Create free account
hub / github.com/cogentcore/core / SaveSVG

Method SaveSVG

plot/plotcore/ploteditor.go:198–204  ·  view source on GitHub ↗

SaveSVG saves the plot to an svg -- first updates to ensure that plot is current

(fname core.Filename)

Source from the content-addressed store, hash-verified

196
197// SaveSVG saves the plot to an svg -- first updates to ensure that plot is current
198func (pl *PlotEditor) SaveSVG(fname core.Filename) { //types:add
199 pl.UpdatePlot()
200 // TODO: get plot svg saving working
201 // pc := pl.PlotChild()
202 // SaveSVGView(string(fname), pl.Plot, sv, 2)
203 pl.svgFile = fname
204}
205
206// SavePNG saves the current plot to a png, capturing current render
207func (pl *PlotEditor) SavePNG(fname core.Filename) { //types:add

Callers 1

SaveAllMethod · 0.95

Calls 1

UpdatePlotMethod · 0.95

Tested by

no test coverage detected