# Raster ListDensityPlot with vector axes and labels

Is there an easy way to export a raster DensityPlot or ListDensityPlot but with vector axes, lines and label? I didn't find an easy answer in other questions.

• See Rasterized density plot with vector axes and Saner alternative to ContourPlot fill and the questions linked there. – MarcoB May 23 '18 at 15:54
• Thank you, Marco. But they don't seem to answer to the question. Is it possible that there is not an easy and compact solution? – jset May 23 '18 at 15:59
• – corey979 May 23 '18 at 19:48
• Ok, thank you. It works if PlotLegends is not specified in the original Plot. Do you have an idea how to modify rasterizeBackground ? – jset May 24 '18 at 9:27
• @jset See my answer here for an improved version of rasterizeBackground, especially the version in the "Update" section. That one can handle legends plots and similar structures without issues – Lukas Lang May 24 '18 at 22:37