这是我的代码
\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{tikzpicture}
\node [single arrow, draw,fill=white!20, rotate=90] at (-6,1.7) {Abstraktionsebene};
\node [single arrow, draw,fill=white!20, rotate=270] at (-7,1.7) {Datenvolumen};%scale=2.25 ,yshift=10ex, align=center,
\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/Fusion auf Rohdatenebene,
1/Fusion auf Merkmalsebene,
2/Fusion auf Objektebene} { %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}
任何帮助都将不胜感激。谢谢
答案1
- 要使箭头具有相同的大小,请指定其
minimum width
和minimum height
。 - 为了使它们对齐在同一高度,一个解决方案是改变它们的
anchor
角度。
例如,定义:
\node [single arrow, minimum width=1cm, minimum height=5cm, draw,
anchor=west,rotate=90] at (-6,0) {Abstraktionsebene};
\node [single arrow, minimum width=1cm, minimum height=5cm, draw,
anchor=east,rotate=270] at (6,0) {Datenvolumen};