Suppose I have a density plot which I want to export in EPS format. But when tried using command, Export["/home/1.eps", %263, "EPS"] , the exported image has very large size (~100MB). How can I export the image with a size ~1 MB? Someone kindly help me to solve this problem.
1 Answer
Use the option ImageResolution
in Export
:
plot = Plot[{Sin[x], Cos[x]}, {x, 0, 2 Pi}, Filling -> Axis];
Compare the two files:
Export["plot20.eps", plot, ImageResolution -> 20]
Export["plot100.eps", plot, ImageResolution -> 100]
-
$\begingroup$ Yes. I have tried it and it works fine. Thanks for the reply. $\endgroup$– atanuAug 27, 2019 at 16:15
ImageResolution
with different settings inExport
, e.g.plot = Plot[{Sin[x], Cos[x]}, {x, 0, 2 Pi}, Filling -> Axis]; Export["plotir20.eps", plot, ImageResolution -> 20]; Export["plotir100.eps", plot, ImageResolution -> 100];
? $\endgroup$