%\definecolor{ublue}{rgb}{0.152,0.250,0.545} \begin{tikzpicture} \begin{axis}[ width=10cm, height=5cm, symbolic x coords={1-15,16-25,26-35,>35}, xtick=data, ytick={6,12,...,28}, xlabel={句子长度(范围)}, ylabel={\footnotesize{mTER}[\%]}, xlabel style={align=center}, ylabel style={}, y tick style={opacity=0}, x tick label style={font=\small}, y tick label style={font=\small}, tick align=inside, %major grid style={draw=blue,dashed}, legend pos=outer north east, %legend style={anchor=north west,yshift=-1cm}, legend style={yshift=-4.5em,xshift=-6em,legend cell align=left,legend plot pos=right}, ymin=6, ymax=28] \addplot [sharp plot,very thick,ublue,mark=diamond*] coordinates{(1-15,11.3) (16-25,16.4) (26-35,17) (>35,19.8)}; \addplot [sharp plot,very thick,red,mark=triangle*] coordinates{(1-15,14.4) (16-25,22.6) (26-35,23.8) (>35,25.9)}; \addplot [sharp plot,very thick,ugreen,mark=square*] coordinates{(1-15,14.9) (16-25,23.7) (26-35,24.7) (>35,26.4)}; \addplot [sharp plot,very thick,orange,mark=*] coordinates{(1-15,17.5) (16-25,24) (26-35,25) (>35,27)}; \legend{\tiny{NMT},\tiny{SPB},\tiny{HPB},\tiny{PBSY}} \end{axis} \end{tikzpicture} %---------------------------------------------------------------------