Saving plots as image files

Hello Synths,

I want to save my plots as a disk image (e.g. .png (preferably), .jpeg, .jpg, .svg, .pdf, .bmp, .tiff, .gif, etc), is it currently possible to do so (can be using OSX, Linux or Windows)? . As I want to work with a big amount of images, screen capture it is not a plausible alternative.

I’ve looked throught the mailing list for solutions, but it seems that since the class SCImage is deprecated due to migration from Cocoa to Qt, it is no longer possible to do so. I’ve read about some people who manage to save images using GNUPLOT Quark (along with GNUPlot and Aquaterm) but I could not manage it… Is this still working?

Best!

The following works for me on Linux, SC version 3.10.3:

p = Env.new(levels: [0, 1, 0.9, 0], times: [0.1, 0.5, 1], curve: [-5, 0, -5]).plot;

i = Image.fromWindow(p.parent, p.interactionView.bounds);
i.write("~/test.png".standardizePath);
i.free;
4 Likes

Anybody has an idea on how to save them as .svg?

Unfortunately
i.write("~/test.svg".standardizePath, format: \svg);
doesn’t work even if its listed in Image.formats