0

I was wondering why predefined patterns like dashed, dotted, thick, etc., do not scaled when scaling the complete tikzpicture environment.

Minimal Example:

\documentclass{beamer}

\usepackage{tikz}


\begin{document}

    \begin{figure}
        \begin{tikzpicture}[transform shape, scale=.3]
            \draw[very thick, dashed] (0,0) -- (10, 0);
        \end{tikzpicture}
    \end{figure}

    \begin{figure}
        \begin{tikzpicture}
            \draw[very thick, dashed] (0,0) -- (10, 0);
        \end{tikzpicture}
    \end{figure}

\end{document}
1

The scale parameter only scales the coordinates. In order to scale the whole environment you have to use scalebox or resizeobox

\documentclass{beamer}
\usepackage{tikz}
\begin{document}
    \begin{figure}
        \scalebox{0.3}{%
        \begin{tikzpicture}[transform shape]
            \draw[very thick, dashed] (0,0) -- (10, 0);
        \end{tikzpicture}
        }
    \end{figure}
    \begin{figure}
        \begin{tikzpicture}
            \draw[very thick, dashed] (0,0) -- (10, 0);
        \end{tikzpicture}
    \end{figure}
\end{document}
| improve this answer | |

Not the answer you're looking for? Browse other questions tagged or ask your own question.