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
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 ?
Thanks Gab
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
... 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: