[pstricks] Listplot values

Ulrich Bongartz u.bongartz at freenet.de
Mon May 24 19:29:07 CEST 2010


Hi,

I try to plot some data. The values should be printed out, but - since the counted things are humans - it is not usefull to get results in the form xx.0.

The code compiles fine, nevertheless: how do I get rid of the extra digits behind the comma?

thx in advance

Ulrich


\documentclass{article}
\pagestyle{empty}

\usepackage{pstricks-add}

 \savedata{\neuberam}[{
{2001,15} {2002,23} {2003,16} {2004,28} {2005,24} {2006,15}
{2007,19} {2008,14} {2009,37} }]


\begin{document}

\pstScalePoints(1,1){2000 sub}{}
 \psset{llx=-0.5cm,lly=-1cm, xAxisLabel=Jahr,yAxisLabel={absolut},%
  xAxisLabelPos={c,-0.4in},yAxisLabelPos={-0.4in,c}
 }
 \psgraph[axesstyle=frame,yticksize=0 10,Dy=10, Dx=1,Ox=2000](0,0)(10,50){4in}{2in}%
 \listplot[linecolor=blue,linewidth=2pt,plotstyle=values]{\neuberam}
 \listplot[showpoints=true,linecolor=blue,linewidth=1pt]{\neuberam}

\endpsgraph
\end{document}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pstricks/attachments/20100524/a8ad1b06/attachment.html>


More information about the PSTricks mailing list