[pstricks] Listplot values
Michael Sharpe
msharpe at ucsd.edu
Mon May 24 20:03:43 CEST 2010
Add ,decimals=0 immediately following plotstyle=values.
Michael
On May 24, 2010, at 10:29 AM, Ulrich Bongartz wrote:
> 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}
> _______________________________________________
> PSTricks mailing list
> PSTricks at tug.org
> http://tug.org/mailman/listinfo/pstricks
> archive: http://www.tug.org/pipermail/pstricks/
More information about the PSTricks
mailing list