I have the following code to create animated GIFs:
ClearAll["`*"];
xmin = -3;
xmax = 4;
ymin = -10;
ymax = 3;
line1 = Line[{{xmin, ymin}, {xmin, ymax}}];
line2 = Line[{{xmax, ymin}, {xmax, ymax}}];
slides = 8;
cmin = -10;
cmax = 5/2;
v = Table[Manipulate[
Plot[{1/3 x^3 + x^2 + x - (2 x^2 + 4 x), c}, {x, xmin, xmax},
PlotStyle -> {Blue, Red}, AspectRatio -> GoldenRatio,
PlotRange -> {{xmin, xmax}, {ymin, ymax}},
Epilog -> {Directive[{Green, Green}], line1, line2},
Background -> None], {{c, k/slides, "Constant:"}, cmin, cmax}],
{k, cmin*slides, cmax*slides}];
v = Join[v[[1 ;; Dimensions[v][[1]] - 1]], Reverse[v]];
When I use:
Export["testManip007.gif", v]
I obtained:
In order to get transparent background gif, I tried the following which worked for other cases:
Export["testManip007t.gif", v, "TransparentColor" -> White]
but the resulted is:
Additionally:
Export["testManip003t.gif", v, "DisplayDurations" -> 0.1,
"TransparentColor" -> White]
always causes error message and empty output.
How to solve the problems?
Background
explicitly toWhite
but with no improvement to the exported gif. I then set bothBackground
and"TransparentColor"
toYellow
, which improved the appearance of the slider but not the plot itself. $\endgroup$"Interlaced"
option toTrue
orFalse
does not have an effect. $\endgroup$"TransparentColor" -> White
. My recommendation stay with white background. $\endgroup$