Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Resize a tikzpicture

3,528 views
Skip to first unread message

Joe

unread,
Aug 23, 2008, 1:45:59 PM8/23/08
to
Hello,

I'm new to PGF/TikZ and I'd like to know how to resize a tikzpicture.
Can I do it by adding an option to the environnement like this :
\begin{tikzpicture}[133x250]
...
\end{tikzpicture} ???

I don't necessary want to keep proportional sizes.

Thank you very much.


Joe

Gab

unread,
Aug 23, 2008, 3:43:36 PM8/23/08
to

There's a scale option... see the documentation.

For example, to double the picture:
\begin{tikzpicture}[scale=2]
...
\end{tikzpicture}

Gab

Joe

unread,
Aug 23, 2008, 6:18:17 PM8/23/08
to
Gab a écrit :

Thanks Gab

One more question : if I do scale=2, does this mean that my texts and
labels sizes are going to be doubled ?

Joe

unread,
Aug 23, 2008, 6:19:16 PM8/23/08
to
Gab a écrit :

Thanks Gab

Kjell Magne Fauske

unread,
Aug 24, 2008, 5:58:15 AM8/24/08
to

On Aug 24, 12:19 am, Joe <joe@orange> wrote:
> Gab a écrit :
>
>
>
> > On Aug 23, 2:45 pm, Joe <joe@orange> wrote:

> > There's a scale option... see the documentation.
>
> > For example, to double the picture:
> > \begin{tikzpicture}[scale=2]
> > ...
> > \end{tikzpicture}
>
> > Gab
>
> Thanks Gab
>
> One more question : if I do scale=2, does this mean that my texts and
> labels sizes are going to be doubled ?

No. The scale operation by default only applies to coordinates. If you
want to scale the text (nodes) add a 'transform shape' option like
this:

\begin{tikzpicture}[scale=2,transform shape]
...
\end{tikzpicture}

Regards,
Kjell Magne Fauske

Ken Starks

unread,
Aug 24, 2008, 6:05:07 AM8/24/08
to


... see the documentation was not meant to be ignored.
section 15.7 starts;


15.7 Transformations
It is possible to transform nodes, but, by default, transformations do
not apply to nodes. The reason is that
you usually do not want your text to be scaled or rotated even if the
main graphic is transformed. Scaling
text is evil, rotating slightly less so.
However, sometimes you do wish to transform a node, for example, it
certainly sometimes makes sense
to rotate a node by 90 degrees. There are two ways in which you can
achieve this:

0 new messages