|Title||Line artifacts in filled contour plot|
|Author||Hua Peng, StataCorp|
When viewing a filled contour plot on Linux and Mac, the graph may show small line stripes that look like scratches. The same symptom may occur when viewing exported EPS or PDF files of a filled contour plot.
These line stripes are an artifact due to anti-aliasing. Stata graph windows on Mac and Linux have anti-aliasing enabled, as do many PostScript and PDF viewers. This causes these line stripe artifacts to occur. The problem is limited: it only appears when viewing the graph or exported EPS/PDF file on the computer screen. If you print the file, you will not see the line stripe artifacts.
We have included special logic in the code to reduce the artifacts that appear on Linux and Mac machines. Stata graph windows on Microsoft Windows do not suffer from anti-aliasing because these windows do not support it.
You can prevent the artifacts when viewing an affected file by turning off anti-aliasing support on the PostScript or PDF viewer.
Here are instructions for turning off anti-aliasing on some popular PostScript and PDF viewers: