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)
| 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 |
| 220 | func (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) |
| 229 | func (pl *PlotEditor) OpenCSV(filename core.Filename, delim table.Delims) { //types:add |