I would like to save a list of plots generated using Table
. I've tried to generate a 3 x 3 array of plots using the code shown bellow.
(But a general code can generate a n x n plot.)
My intent is to save the array of plots as a PDF file. However, although the code below works, it generates a messy PDF.
How can I solve this problem?
L = 15; pp = 100; k = 1;
f[x_, y_] = BesselJ[l, k Sqrt[x^2 + y^2]];
outplot =
Table[
DensityPlot[Abs[f[x, y]], {x, -L, L}, {y, -L, L},
PlotRange -> Full,
PlotPoints -> pp,
ColorFunction -> "Rainbow",
Axes -> True,
AxesLabel -> {x, y},
LabelStyle -> Directive[Black, 12],
PerformanceGoal -> "Quality",
FrameTicks -> True,
Exclusions -> None],
{l, 0, 8}]
Export["fxy.pdf", outplot, ImageResolution -> 300]
Export["fxygrid.pdf", Grid@Partition[outplot, 3], ImageResolution -> 300]
give what you need? $\endgroup$