exporting very dense DensityPlot or Plot3D figures as vectors (pdf, eps) become very huge in size. for example, exporting this fig as pdf gives 85MB in size
plot2d = DensityPlot[Sin[x] Sin[y], {x, -4, 4}, {y, -3, 3}, PlotPoints -> 200, LabelStyle -> {FontFamily -> "LM Roman 12", Black, FontSize -> 16}, FrameLabel -> (MaTeX[#, FontSize -> 17] &) /@ {"X", "Y"}, ImageSize -> 200, ColorFunction -> Hue] Is it possible to Rasterize only the plot profile without frames or labels such that when exporting as pdf they are still in vector form (frame and labels)?
and can it be done also for Plot3D (As I know labels can not be in vector style in Plot3D but at least can we Rasterize plot profile and Axes with labels independently? so we can assign high RasterSize on labels and low for plot profile )
Plot3D[Sin[x] Sin[y], {x, -4, 4}, {y, -3, 3}, PlotPoints -> 200, LabelStyle -> {FontFamily -> "LM Roman 12", Black, FontSize -> 16}, AxesLabel -> (MaTeX[#, FontSize -> 17] &) /@ {"X", "Y"}, ImageSize -> 200, ColorFunction -> Hue, BoxRatios -> {1, 1, 2}, ViewPoint -> {1, -1.3, 0.5}, PlotTheme -> "Detailed"] 
