Following the answer given here, I am plotting contour lines in black/white:
data2 = Flatten[
Table[{x, y, .8 (x + 1)^3 + .4 (y + 1)^2}, {x, -4, 4, .1}, {y, -4,4, .1}], 1];
width = 0.1;
ListContourPlot[data2,
Contours -> Flatten@Table[n + width {-.5, .5}, {n, -30, 30}],
ContourShading -> {White, Black}, PlotRange -> All,
ContourStyle -> Black]
I am then exporting the image. This is just a test data set. The real data set has 100.000 data points and thus the exported image is much larger.
Is there a way to either plot differently or change the plot such that the exported vectorized image is around a few MB?
Export["cplot.pdf", [ListContourPlot[....] ]
the result is only 600kB $\endgroup$Export["figure.pdf", Rasterize[yourplot, ImageSize -> 600]]
and toy with the size to find the right tradeoff. $\endgroup$