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

Method SavePNG

plot/plotcore/ploteditor.go:207–210  ·  view source on GitHub ↗

SavePNG saves the current plot to a png, capturing current render

(fname core.Filename)

Source from the content-addressed store, hash-verified

205
206// SavePNG saves the current plot to a png, capturing current render
207func (pl *PlotEditor) SavePNG(fname core.Filename) { //types:add
208 pl.UpdatePlot()
209 imagex.Save(pl.plot.Pixels, string(fname))
210}
211
212// SaveCSV saves the Table data to a csv (comma-separated values) file with headers (any delim)
213func (pl *PlotEditor) SaveCSV(fname core.Filename, delim table.Delims) { //types:add

Callers 1

SaveAllMethod · 0.95

Calls 2

UpdatePlotMethod · 0.95
SaveFunction · 0.92

Tested by

no test coverage detected