[pstricks] psgraph

Herbert Voss Herbert.Voss at alumni.TU-Berlin.DE
Mon Jul 12 10:44:29 CEST 2004


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}



-- 
http://TeXnik.de/
http://PSTricks.de/
ftp://ftp.dante.de/tex-archive/info/math/voss/Voss-Mathmode.pdf
http://www.dante.de/faq/de-tex-faq/
http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes




More information about the PSTricks mailing list