[pstricks] Writing A PS String Macro

Herbert Voss Herbert.Voss at alumni.TU-Berlin.DE
Sun Feb 29 15:24:35 CET 2004


Vince McGarry wrote:
> Thanks. This looks much easier and I see the advantage.

I put it into my pstricks-add package (ver 1.2)
http://perce.de/LaTeX/pstricks-add/

and modified it a bit to get a better option handling:

\documentclass[12pt]{article}
\usepackage{pstricks-add}
\pagestyle{empty}
\begin{document}

\psset{yunit=0.5cm,xunit=1cm}
\begin{pspicture*}(-2,-4)(5,10)
   \psaxes[Dy=2]{->}(0,0)(-2,-4)(5,10)
   \psplotPolynomial[coeff=6 3 -1,linecolor=red,linewidth=2pt]{-2}{5}
   \psplotPolynomial[coeff=2 -1 -1 .5 -.1 .025,%
       linecolor=blue,linewidth=2pt]{-2}{4}
\end{pspicture*}

\end{document}


Herbert



-- 
http://www.pstricks.de/




More information about the PSTricks mailing list