von ProtonLaser » Do 16. Feb 2023, 20:09
Danke für deine Zeit und Antwort!
Ich habe folgendes "Problem" mit deinem Vorschlag, leider bin ich nicht fit in TIKZ.
Ich habe versucht die beiden Pfeile links und rechts in dein angegebenes Beispiel einzufügen leider ohne Erfolg.
Ich würde gerne den Farbverlauf wie in diesem Beispiel haben:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{intersections}
\usetikzlibrary{calc,trees,positioning,arrows,chains,shapes.geometric,%
decorations.pathreplacing,decorations.pathmorphing,shapes,%
matrix,shapes.symbols}
\begin{document}
\begin{figure}[h!]
\begin{center}
\begin{tikzpicture}
\node [single arrow, minimum width=1cm, minimum height=5cm, draw,
anchor=west,rotate=90,top color=red,bottom color=green] at (-6,0) {Komplexität der Implementierung};
\node [single arrow,, minimum width=1cm, minimum height=5cm, draw,
anchor=east,rotate=270] at (6,0) {Kosten};
\node [single arrow,top color=red,bottom color=green, minimum width=1cm, minimum height=5cm, draw,
anchor=east,rotate=270] at (7,0) {Kosten};
\coordinate (A) at (-5,0) {};
\coordinate (B) at ( 5,0) {};
\coordinate (C) at (0,5) {};
\draw[name path=AC] (A) -- (C);
\draw[name path=BC] (B) -- (C);
\foreach \y/\A in
{0/TEST,
1/TEST,
2/TEST} {0/G,1/F,2/E,3/D,4/C,5/B,6/A
\path[name path=horiz] (A|-0,\y) -- (B|-0,\y);
\draw[name intersections={of=AC and horiz,by=P},
name intersections={of=BC and horiz,by=Q},] (P) -- (Q)
node[midway,above] {\A};
}
\end{tikzpicture}
\caption{TEST}
\label{fig:TEST}
\end{center}
\end{figure}
\end{document}
Ebenfalls hatte ich leider auch keinen Erfolg eine Beschriftung an die beiden Ende der jeweiligen Pfeile "anzuheften"
Für weiter Hilfe wäre ich sehr dankbar!
Nochmals vielen Dank!
Danke für deine Zeit und Antwort!
Ich habe folgendes "Problem" mit deinem Vorschlag, leider bin ich nicht fit in TIKZ.
Ich habe versucht die beiden Pfeile links und rechts in dein angegebenes Beispiel einzufügen leider ohne Erfolg.
Ich würde gerne den Farbverlauf wie in diesem Beispiel haben:
[code]\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{intersections}
\usetikzlibrary{calc,trees,positioning,arrows,chains,shapes.geometric,%
decorations.pathreplacing,decorations.pathmorphing,shapes,%
matrix,shapes.symbols}
\begin{document}
\begin{figure}[h!]
\begin{center}
\begin{tikzpicture}
\node [single arrow, minimum width=1cm, minimum height=5cm, draw,
anchor=west,rotate=90,top color=red,bottom color=green] at (-6,0) {Komplexität der Implementierung};
\node [single arrow,, minimum width=1cm, minimum height=5cm, draw,
anchor=east,rotate=270] at (6,0) {Kosten};
\node [single arrow,top color=red,bottom color=green, minimum width=1cm, minimum height=5cm, draw,
anchor=east,rotate=270] at (7,0) {Kosten};
\coordinate (A) at (-5,0) {};
\coordinate (B) at ( 5,0) {};
\coordinate (C) at (0,5) {};
\draw[name path=AC] (A) -- (C);
\draw[name path=BC] (B) -- (C);
\foreach \y/\A in
{0/TEST,
1/TEST,
2/TEST} {0/G,1/F,2/E,3/D,4/C,5/B,6/A
\path[name path=horiz] (A|-0,\y) -- (B|-0,\y);
\draw[name intersections={of=AC and horiz,by=P},
name intersections={of=BC and horiz,by=Q},] (P) -- (Q)
node[midway,above] {\A};
}
\end{tikzpicture}
\caption{TEST}
\label{fig:TEST}
\end{center}
\end{figure}
\end{document}[/code]
Ebenfalls hatte ich leider auch keinen Erfolg eine Beschriftung an die beiden Ende der jeweiligen Pfeile "anzuheften"
Für weiter Hilfe wäre ich sehr dankbar!
Nochmals vielen Dank!