2015-04-01 72 views

回答

1

尝试这一个:

\documentclass[multi=false,tikz,border=2mm]{standalone} 
\usetikzlibrary{arrows} 

\begin{document} 

\begin{tikzpicture} 
\def\labelz{{"Judicial Independence","Long Label 2","Label 3","Label 4"}} 
\draw [<->,>=triangle 45] (0,0) -- (10,0); 
\foreach \x in {1,...,4} {% 
     \draw [<->,>=stealth] (2*\x,-.4) -- (2*\x,.4); 
     \node at (2*\x,2.4-.4*\x){\pgfmathparse{\labelz[\x-1]}\pgfmathresult}; 
} 
\end{tikzpicture} 

\end{document} 

screenshot of output pdf

然后从这里可以调整scale,线的位置,箭头的形状(reference)。

请注意,如果你感兴趣的变化取决于\x

相反,改变

\node at (2*\x,2.4-.4*\x)

\node [align=center,text width=22mm] at (2*\x,1)

youl'll得到:

screenshot of output pdf 2

+0

......也改变'长标签2'到'长长的Labe顺便说一句 – MattAllegro 2015-06-30 19:55:20