# BarLegend rasterized in EMF and EPS export

A while ago you guys gave me a splendid workaround to the rasterization bug in exported BarCharts.

Now I noticed that the workaround is not working for BarLegends. My problem is, that

legend =  BarLegend["Rainbow"]
Export["E:\\test.emf", legend];


produces a clearly rasterized file.

Is there any way to get a vector graphic from this simple plot?

• Obviously, the replacements in the workaround for the bug don't work with BarLegends. – Franz Xaver Feb 4 '15 at 17:57
• It might have something to do with Hold[...] preserving a BarChart in its unexecuted form, but not a BarLegend. – Franz Xaver Feb 4 '15 at 18:11

## 1 Answer

Since version 10.0.2, BarLegends are finally exported correctly in EPS-files. EMF-export is still broken. Fortunately, it is now possible to generate neat EMF-files from the EPS-files, for example using CorelDraw.