请考虑以下示例:
\documentclass{article}
\usepackage{pst-plot}
\begin{document}
\psset{xunit=1cm,yunit=0.1cm}
\savedata{\data}[{1,64},{2,32},{3,16},{4,8},{5,4},{6,2},{7,1}]
\begin{pspicture}(-1,-4)(8.6,79)
\psaxes[
dy=10,
labels=none,
ticklinestyle=dotted,
tickwidth=0.5pt,
xticksize=0 70,
yticksize=0 7
]{->}(0,0)(-0.2,-2)(7.5,75)[Format,0][Ark A6-papir,90]
\psaxes[
dy=10,
Dy=10,
mathLabel=false,
xLabels={,A0,A1,A2,A3,A4,A5,A6}
]{->}(0,0)(-0.2,-2)(7.5,75)
\dataplot[
plotstyle=dots,
dotstyle=o,
fillcolor=red
]{\data}
\end{pspicture}
\end{document}
A6
x 轴上的标签丢失;我该如何让 PSTricks 显示它?
答案1
使用
\psaxes[
dy=10,Dy=10,
mathLabel=false,
xLabels={,A0,A1,A2,A3,A4,A5,A6}]{->}(7.5,75)