I'm learning TIKZ drawing, but I can't understand what the option x= in this code means, can anyone explain it to me, thank you, code show as below:

\begin{tikzpicture}[even odd rule,rounded corners=2pt,x=10pt,y=10pt]
\filldraw[fill=yellow!80!black] (0,0) rectangle (1,1)
[xshift=5pt,yshift=5pt] (0,0) rectangle (1,1)
[rotate=30] (-1,-1) rectangle (2,2);

What does x=10pt mean here?


1 Answer 1


Page 374 in the manual:

About x-vector from the manual

x=10pt sets the x-vector to be 10pt instead of the normal 1cm - so all coordinates are scaled.

  • I got it, thanks a lot for your help
    – hebtuzrl
    Commented Dec 26, 2022 at 6:39
  • @hebtuzrl, you shoulčd consider to accept answer ...
    – Zarko
    Commented Dec 26, 2022 at 6:51

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .