When drawing a dashed line, it seems that TikZ inserts a zero-width line that is visible on some (e.g., Acrobat, Sumatra) but not all (e.g., Evince, Chromium browser) PDF viewers.
From the PDF 1.7 specs, section 8.4.3.2:
A line width of 0 shall denote the thinnest line that can be rendered at device resolution: 1 device pixel wide. However, some devices cannot reproduce 1-pixel lines, and on high-resolution devices, they are nearly invisible. Since the results of rendering such zero-width lines are device-dependent, they should not be used.
An almost minimal example:
% Created by tikzDevice version 0.7.3 on 2014-11-02 08:56:28
% !TEX encoding = UTF-8 Unicode
\documentclass{article}
\usepackage{tikz}
\usepackage[active,tightpage,psfixbb]{preview}
\PreviewEnvironment{pgfpicture}
\setlength\PreviewBorder{0pt}
\begin{document}
\begin{tikzpicture}[x=1pt,y=1pt]
\definecolor[named]{drawColor}{rgb}{0.00,0.00,0.00}
\definecolor[named]{fillColor}{rgb}{0.00,0.00,0.00}
\path[draw=drawColor,line width= 0.6pt,dash pattern=on 1pt off 3pt,
line join=round,fill=fillColor]
( 21.13, 19.75) -- (132.49,132.50);
\end{tikzpicture}
\end{document}
Here's the output as seen in Acrobat XI pro (print-screen, export as PNG looks even worse):
Is this a known issue? Are there some options missing with the \path
command?
Reference: Original issue for the tikzDevice
R package.
Perhaps related: TikZ fill zero-width border
fill=fillColor
from your path options...