|Line artifacts in filled contour plot
|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:
Classroom and web training
Teaching with Stata
Statalist: The Stata Forum
Last updated: 16 November 2022
StataCorp LLC (StataCorp) strives to provide our users with exceptional products and services. To do so, we must collect personal information from you. This information is necessary to conduct business with our existing and potential customers. We collect and use this information only where we may legally do so. This policy explains what personal information we collect, how we use it, and what rights you have to that information.
These cookies are essential for our website to function and do not store any personally identifiable information. These cookies cannot be disabled.
Please note: Clearing your browser cookies at any time will undo preferences saved here. The option selected here will apply only to the device you are currently using.