I'm doing some solar system animations with Mathematica. I'm wondering if it's possible to somehow change the background of the result of a plot function so that whenever I paste it in a movie editor, it will be transparent (not white). An example code is:
Animate[Plot[Sin[x t], {x, 0, 2 Pi }], {t, 0, 1}]
Here, the background is white. I would like it to be transparent.
EDIT
I tried (simplified example code):
test=Plot[Sin[2 t], {x, 0, 2 Pi },Background-> None]
Export['test.jpg',test]
this resulted in:
Is there any way of saving the file with a transparent background? Maybe the file extension is wrong?
Animate[Plot[Sin[x t], {x, 0, 2 Pi}, Background -> None], {t, 0, 1}]
? $\endgroup$ – Mr.Wizard Jun 21 '20 at 4:22testframe = RemoveBackground[Plot[Sin[2 x], {x, 0, 2 Pi}]] Export["testframe.png", testframe]
? $\endgroup$ – kglr Jun 21 '20 at 23:35