[pstricks] psgraph

Alan Ristow ristow at ece.gatech.edu
Mon Jul 12 23:03:04 CEST 2004


Great! I like this the best of all of the iterations so far. The
additional requirement to scale the y-axis data (in this case, at least)
is a small price to pay for the additional flexibility.

Alan


On Mon, 12 Jul 2004 10:44:29 +0200, Herbert Voss
<Herbert.Voss at alumni.TU-Berlin.DE> wrote:

>Hello Alan,
>
>I changed the environment \psgraph again, to get a better
>handling of the borders. There are now some new options
>and it is called in the same way as pspicture.
>
>Look at the example. For more informations see the docs, which
>I updated. This environment is still experimental code.
>
>http://perce.de/LaTex/pstricks-add/
>Version 1.63
>
>Herbert
>
>
>
>\documentclass[a4paper]{article}
>\usepackage{filecontents}
>
>\begin{filecontents*}{demo.dat}
>1989 3.08
>1990 3.84
>1991 4.08
>1992 3.21
>1993 5.23
>1994 2.97
>1995 2.53
>1996 2.8
>1997 2.78
>1998 3.15
>1999 2.32
>2000 2.4
>2001 2.46
>\end{filecontents*}
>
>\usepackage{pstricks}
>\usepackage{pst-plot}
>\usepackage{pstricks-add}% v1.63 !!
>\pagestyle{empty}
>\parindent=0pt
>
>\begin{document}
>   \centering%
>   \psframebox[linecolor=blue,linestyle=dashed]{%
>   \begin{psgraph}[axesstyle=frame,Ox=1989,Oy=2.00,Dy=0.5,tickstyle=bottom,%
>       llx=-0.9cm,lly=-0.5cm,urx=0.25cm,ury=0.3cm](0,0)(12,4.50){4in}{2in}%
>     \pstScalePoints(1,1){1989 sub}{2 sub}%
>     \readdata{\data}{demo.dat}%
>     \listplot[linecolor=black,showpoints=true,plotstyle=line,dotstyle=o]%
>       {\data}%
>   \end{psgraph}
>}
>\end{document}





More information about the PSTricks mailing list