- #1
member 428835
Hi PF!
I'm trying to export plots of .png files as follows:
But the issue is my output images are titled test1.png, test2.png,...,test13.png...etc. How do I change the file title to read test01.png, test02.png,...,test13.png?
I really appreciate it!
I'm trying to export plots of .png files as follows:
Code:
plot[t_] :=
Plot[0.1 Exp[-2 \[Pi] t] Cos[\[Pi]*j*x], {x, -1, 1},
PlotRange -> {{-1, 1}, {-1, 1}}, Axes -> False, Background -> Black,
PlotStyle -> Thickness[0.02]]
dt = 0.1;
Do[Export["test" <> ToString[t/dt] <> "png", plot[t],
ImageResolution -> 300], {t, 0, 1, dt}]
But the issue is my output images are titled test1.png, test2.png,...,test13.png...etc. How do I change the file title to read test01.png, test02.png,...,test13.png?
I really appreciate it!