« Return to Thread: tikz diagram does not scale

Re: tikz diagram does not scale

by James Ismail :: Rate this Message:

Reply to Author | View in Thread

Thanks Erik.  That seems to be exactly what I was looking for.

-James

On Mon, Jun 29, 2009 at 10:41 AM, Erik Bernoth <erik.bernoth@...> wrote:
Just for other guys with the same question: If you set your every node style with a scale value, the whole thing scales.

this works:
\tikzset{
  every node/.style={scale=0.5}
}
%[...]
\begin{tikzpicture}
  \node(A) {something};
  \node(B) [right=of A] {else};
\end{tikzpicture}

this does not work:
\begin{tikzpicture}[scale=0.5]
  \node(A) {something};
  \node(B) [right=of A] {else};
\end{tikzpicture}

and this does not work, too:
\begin{tikzpicture}[xscale=3,yscale=3]
\node (a) {bla};
\node [right=of a] {bla2};
\end{tikzpicture}

I just found out by accident. And I can't find a proper source in the documentation. I just can say, that in own experiments with scale as tikzpicture-attribute (like you can see it used on page 301 pgfmanual) it just made the borders broader. The content stayed in the same size.

regards
Erik Bernoth

------------------------------------------------------------------------------

_______________________________________________
pgf-users mailing list
pgf-users@...
https://lists.sourceforge.net/lists/listinfo/pgf-users



------------------------------------------------------------------------------

_______________________________________________
pgf-users mailing list
pgf-users@...
https://lists.sourceforge.net/lists/listinfo/pgf-users

 « Return to Thread: tikz diagram does not scale