6

I do have a short problem with Tikz

\documentclass{article}
\usepackage{pgf,tikz}
\usetikzlibrary{patterns}
\begin{document}
\begin{tikzpicture}
\fill[pattern=north east lines] (0,0) -- (0,1) -- (1,1) -- (1,0) -- cycle;
\end{tikzpicture}
\end{document}

I simply want to fill differently shaped areas with north east lines. Which is done as is it's supposed to be. But the problem i can not figure out is why they are not exactly straight. Certainly nobody would notice in print but in the pdf it just looks distorted. Is there a way to improve this?

azetina
  • 28,884
Stephan
  • 61
  • 5
    This is yet another side effect of the PDF-viewer, has nothing to do with TikZ or pstricks if that is used. Try zoom in and see if it disappears? It does in my case. – nickpapior Apr 07 '12 at 09:43
  • Related: http://tex.stackexchange.com/q/52704/12774 – JohnReed Jun 07 '12 at 00:46

1 Answers1

4

As is mentioned in the comment above, the display is dependent on your choice of pdf viewer. For example in Acrobat X we get the following in a 100%, 300% and 500% zoom:

enter image description hereenter image description hereenter image description here

Now in SumatraPDF, you get the following:

enter image description hereenter image description hereenter image description here

Notice how the display varies with the viewer. Hence there is no way to improve on this. The printing output will not be affected.

azetina
  • 28,884