[pstricks] line diagramm with error bars

Marco Daniel marcodaniel1807 at googlemail.com
Mon Jul 27 07:19:25 CEST 2009


Hello,

I don't know what you want to reach. Maybe you can use the package
pstricks-add which provide the command plotNoMax.

Here an example:

%%%%
\documentclass{book}
\pagestyle{empty}
\usepackage{filecontents}
\begin{filecontents}{chlora.dat}
2.5 0.0006 -0.00006 0.00006
5 0.0023 -0.00030 0.00030
8 0.0043 -0.00087 0.00087
12 0.0070 -0.00038 0.00038
24 0.0260 -0.00282 0.00282
96 0.1070 -0.01009 0.01009
\end{filecontents}

\begin{filecontents}{chlorb.dat}
2.5 0.000125 -0.000019 0.000019
5 0.000871 -0.000115 0.000115
8 0.001662 -0.000363 0.000363
12 0.002551 -0.000074 0.000074
24 0.010362 -0.000791 0.000791
96 0.041813 -0.003139 0.003139
\end{filecontents}

\usepackage{pstricks,pst-plot}
\usepackage{pstricks-add}
\psset{xunit=0.15cm,yunit=80cm,runit=1cm}
\begin{document}
% \readdata{\Data}{chlora.dat}\psset{dotscale=.8}
\readdata{\Data}{chlorb.dat}\psset{dotscale=.8}
\begin{pspicture}(-.1,-.1)(100,0.07)
  \psaxes[Dx=5,Dy=0.02]{->}(100,0.06)
\listplot[plotstyle=line,showpoints=true,plotNo=1,plotNoMax=3]{\Data}
\listplot[plotstyle=bar,linecolor=green,showpoints=true,plotNo=1,plotNoMax=3]{\Data}
\listplot[linecolor=red,plotstyle=line,showpoints=true,plotNo=2,plotNoMax=3]{\Data}
\listplot[linecolor=blue,plotstyle=line,showpoints=true,plotNo=3,plotNoMax=3]{\Data}
\end{pspicture}
\end{document}
%%%%%%%%%%

regards
Marco
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pstricks/attachments/20090727/621615aa/attachment.html>


More information about the PSTricks mailing list