[pstricks] psgraph question

Herbert Voss LaTeX at zedat.fu-berlin.de
Sat Dec 10 09:34:20 CET 2005


McGarry Vince wrote:

> \usepackage{pstricks}
> \usepackage{pstricks-add}
> 
> \begin{document}
> \def\cubef#1{#1 -5 sub #1 -1 sub #1 6 sub mul mul -1 mul}
> \psset{xAxisLabel={$x$},yAxisLabel={$f(x)$}}
> \begin{psgraph*}[Dx=1,Dy=40,arrows=->,arrowscale=2](0,0)(-6.5,-140) 
> (7.5,140){3in}{2in}
>                                                                         
>                  ^^^^
> \psplot{-8}{8}{\cubef{x}}

forget to say, that there is an alternative with pst-func

\psPolynomial[coeff=30 31 0 -1]{-8}{8}


Herbert




More information about the PSTricks mailing list