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

Method SaveAll

plot/plotcore/ploteditor.go:220–226  ·  view source on GitHub ↗

SaveAll saves the current plot to a png, svg, and the data to a tsv -- full save Any extension is removed and appropriate extensions are added

(fname core.Filename)

Source from the content-addressed store, hash-verified

218// SaveAll saves the current plot to a png, svg, and the data to a tsv -- full save
219// Any extension is removed and appropriate extensions are added
220func (pl *PlotEditor) SaveAll(fname core.Filename) { //types:add
221 fn := string(fname)
222 fn = strings.TrimSuffix(fn, filepath.Ext(fn))
223 pl.SaveCSV(core.Filename(fn+".tsv"), table.Tab)
224 pl.SavePNG(core.Filename(fn + ".png"))
225 pl.SaveSVG(core.Filename(fn + ".svg"))
226}
227
228// OpenCSV opens the Table data from a csv (comma-separated values) file (or any delim)
229func (pl *PlotEditor) OpenCSV(filename core.Filename, delim table.Delims) { //types:add

Callers

nothing calls this directly

Calls 4

SaveCSVMethod · 0.95
SavePNGMethod · 0.95
SaveSVGMethod · 0.95
FilenameTypeAlias · 0.92

Tested by

no test coverage detected