请考虑以下示例:
\documentclass{article}
\usepackage{pst-coil,pst-plot}
\def\tilskud#1#2{%
\psline[linewidth=1.5pt,linecolor=red]%
(!#1 1986 sub 0)%
(!#1 1986 sub #2 8 sub 2 div)%
(!#1 1986.2 sub #2 8 sub 2 div)%
(!#1 1985.8 sub #2 8 sub 2 div)
}
\begin{document}
\begin{pspicture}(-1.35,-0.4)(9.15,7.7)
\psaxes[
yAxis=false,
xLabels={,1987,,1989,,1991,1992,1992,1994}
]{->}(0,0)(0,0)(8.5,0)[Fish,0][,90]
\psyTick(0){0}
\psaxes[xAxis=false](0,0)(0,0.2)
\pszigzag[coilarm=0.0625,coilwidth=0.3,coilheight=0.5](0,0.2)(0,0.8)
\psaxes[
xAxis=false,
Oy=10,
dy=0.5,
ylabelFactor={\cdot 10^6}
]{->}(0,1)(0,0.75)(0,7.35)[,0][Horse,90]
\multido{\r=1+0.5}{13}{\psline[linestyle=dotted](0,\r)(8.5,\r)}
\tilskud{1987}{14.28}
\tilskud{1989}{15.548}
\tilskud{1991}{21.4}
\tilskud{1992}{20.24}
\tilskud{1993}{17.64}
\tilskud{1994}{14.442}
\end{pspicture}
\end{document}
我希望拥有标签,因为我已尝试使用来定义它们xLabels
;我该如何获得它们?
答案1
使用
xLabels={,1987, ,1989, ,1991,1992,1992,1994}
如果没有值,则需要空格