Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

When compiling the example code below with pdflatex Version 3.1415926-2.4-1.40.13 (TeX Live 2012/W32TeX), I observe an artifact (horizontal line starting from the start point of the objects) in the scaled-down version of the tikzpicture. Any help on how to fix this would be appreciated.

\documentclass{article}
\usepackage{tikz}

\begin{document}

  \def\myFig{
      +(0,0) to [out=90,in=270]  +(0,1)
             to [out=90,in=270]  +(1,3)
             to [out=90,in=270]  +(-0.3,1)
             to [out=90,in=180]  +(1,1)
             to [out=0,in=90]    +(1,-1)
             to [out=270,in=90]  +(-0.3,-1)
             to [out=270,in=90]  +(1,-3)
             to [out=270,in=90]  +(0,-1)
             to [out=270,in=0]   +(-0.3,-0.3)
             to [out=180,in=0]   +(-2.8,0)
             to [out=180,in=270] +(-0.3,0.3)
             -- cycle;
  } 

  scale=1: figure looks ok

  \begin{tikzpicture}[scale=1]
    \draw[step=1,lightgray] (-5,0) grid (5,10);
    \draw[gray,thick,fill=gray!10] (-4.2,2.5) \myFig;
    \draw[thick,fill=gray!40,rotate=-18] (0.7,1.1) \myFig;
  \end{tikzpicture}

  \vspace{1cm}
  scale smaller than 1:  figure contains additional lines

  \begin{tikzpicture}[scale=0.4]
    \draw[step=1,lightgray] (-5,0) grid (5,10);
    \draw[gray,thick,fill=gray!10] (-4.2,2.5) \myFig;
    \draw[thick,fill=gray!40,rotate=-18] (0.7,1.1) \myFig;
  \end{tikzpicture}

\end{document}

enter image description here

share|improve this question
    
I can't reproduce this. Which TikZ version are you using? –  Jake Mar 18 '13 at 20:07
    
Could you please provide pictures, I get the correct image (perfectly scaled, and nothing more). –  zeroth Mar 18 '13 at 20:08
    
No additional lines here (TeX Live2012 + PGF version 2.10). What version of PGF/TikZ do you use? –  Gonzalo Medina Mar 18 '13 at 20:08
1  
@Mathias could you provide a link to the PDF, just to rule out any discrepancies between versions, etc.? –  zeroth Mar 18 '13 at 20:42
1  
Sure, here's the link: dl.dropbox.com/u/1280560/document.pdf –  Mathias Mar 19 '13 at 6:19
show 6 more comments

closed as off topic by zeroth, Stephen, Werner, Kurt, mafp Mar 18 '13 at 21:39

Questions on TeX - LaTeX Stack Exchange are expected to relate to TeX, LaTeX or related typesetting systems within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

Browse other questions tagged or ask your own question.