Mathematica’s stupid polygons
For some time now, I’ve had a problem with using mathematica for producing images. When exporting certain graphic types such as contour plots to pdf, the result is a nasty mess:
As Mathematica stores the graphic as a collection of polygons, these are also used to create the pdf file - and they’re visible as thin white lines all over the plot.
Up until now, I’ve not bothered to find a solution to this problem because I didn’t really need the graphs I had for anyone but myself. They help me understand things but would’nt go into a paper or presentation. Now I’m working on a project where contour plots most likely will make it into the final document so I need a fix for this image. Luckily, I found one here.
The FixPolygons module for Mathematica joins together polygons that have the same value, thus eliminating all those irritating little white lines. The result of applying this to the above plot is:
Much better, I think you’ll agree!



