scale=1pt ist übrigens sinnlos. scale=1 ist 100% scale=0.7 ist 70% der größe ein pt hat da nichts zu suchen.
Ups, danke hab pt in die falsche Klammer gesetzt, weiteres Problem gelöst
Könntest du mir vielleicht kurz erläutern, wieso es zum Beispiel bei
Code:
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{minipage}[]{0.5\linewidth}
\begin{tikzpicture}[scale=1]
\draw[->] (-1.0,0) -- (4,0) node[right] {$x$};
\draw[->] (0,-1.0) -- (0,4) node[above] {$f(x)$};
\foreach \x/\xtext in {1/1, 2/2, 3/3}
\draw[shift={(\x,0)}] (0pt,2pt) -- (0pt,-2pt) node[below] {$\xtext$};
\foreach \y/\ytext in {1/1, 2/2, 3/3}
\draw[shift={(0,\y)}] (2pt,0pt) -- (-2pt,0pt) node[left] {$\ytext$};
\draw[color=red,domain=0:3] plot (\x,\x) node[right] {$x$};
\end{tikzpicture}
\end{minipage}
\begin{minipage}[t]{0.5\linewidth}
\begin{tikzpicture}[scale=1]
\draw[->] (-1.0,0) -- (4,0) node[right] {$x$};
\draw[->] (0,-1.0) -- (0,4) node[above] {$f(x)$};
\foreach \x/\xtext in {1/1, 2/2, 3/3}
\draw[shift={(\x,0)}] (0pt,2pt) -- (0pt,-2pt) node[below] {$\xtext$};
\foreach \y/\ytext in {1/1, 2/2, 3/3}
\draw[shift={(0,\y)}] (2pt,0pt) -- (-2pt,0pt) node[left] {$\ytext$};
\draw[color=red,domain=0:3] plot (\x,\x) node[right] {$x$};
\end{tikzpicture}
\end{minipage}
\end{document}
ohne Baseline funktioniert? Das hat mich am meisten irritiert
edit: Es scheint sogar auszureichen wenn man einfach die Ausrichtung weglässt...
Lesezeichen