von mango1234 » Mi 4. Sep 2019, 16:33
hallo, wie kann ich die Skalierung im folgenden Beispiel ändern, also dass der 1 weiter rechts steht? und warum wurde der 1 auf der y-Achse nicht beschriftet? Und warum bekomme ich in Zeile 6 einen Fehler?
\begin{tikzpicture}
\draw[-latex] (-1,0) -- (4,0) node[right, very small caption] {$p_{i1}$};
\draw[-latex] (0,-1) -- (0,4) node[right, very small caption] {$p_{i2}$};
\foreach \x in {0,1}
\foreach \y in {0,1}
\draw (\x,-.1) -- (\x,.1) node[below=4pt] {$\scriptscriptstyle\x$};
\draw (-.1,\y) -- (.1,\y) node[left=4pt] {$\scriptscriptstyle\y$};
\draw[black, thick, domain=2:-2] plot ({-\x+1}, \x);
\end{tikzpicture}
hallo, wie kann ich die Skalierung im folgenden Beispiel ändern, also dass der 1 weiter rechts steht? und warum wurde der 1 auf der y-Achse nicht beschriftet? Und warum bekomme ich in Zeile 6 einen Fehler?
[code]
\begin{tikzpicture}
\draw[-latex] (-1,0) -- (4,0) node[right, very small caption] {$p_{i1}$};
\draw[-latex] (0,-1) -- (0,4) node[right, very small caption] {$p_{i2}$};
\foreach \x in {0,1}
\foreach \y in {0,1}
\draw (\x,-.1) -- (\x,.1) node[below=4pt] {$\scriptscriptstyle\x$};
\draw (-.1,\y) -- (.1,\y) node[left=4pt] {$\scriptscriptstyle\y$};
\draw[black, thick, domain=2:-2] plot ({-\x+1}, \x);
\end{tikzpicture}[/code]