[pstricks] Plotting a function
Markus
markuskrebs at web.de
Sun Jun 1 17:26:20 CEST 2008
Hi Cosi!
Use [algebraic] as option for psplot. Pstricks uses RPN.
\psplot[linewidth=1pt,linecolor=red,algebraic]{0}{100}{-0.005*x^2+600*x-20000}
Greetings
Markus
At 15:24 01.06.2008, you wrote:
>Dear list,
>
>I want to plot this function:
>
>-0.005x^2+600x-20000
>
>Unfortunately it doesn't work and I have no idea why not, because I
>plotted some functions earlier without problems. Here is what I've done:
>
>\documentclass{article}
>\pagestyle{empty}
>\usepackage{pst-all,
>% pstricks,
> pstricks-add,
>% pst-node,
> pst-3dplot,
>% pst-tree,
>% pstricks-add,
> amsmath,
> booktabs,
> ngerman}
>
>\begin{document}
>\psset{xunit=1cm,yunit=1cm,algebraic=true}
>\begin{pspicture}(0,0)(12.5,20)
>\psaxes[dx=1.5,dy=0.5,Dx=20000,Dy=2000000,ticksize=-2pt,arrowsize=.04,linewidth=0.7pt]{->}(0,0)(10,5.5)
>\psplot[linewidth=1pt,linecolor=red]{0}{100}{-0.005*x^2+600*x-20000}
>\end{pspicture}
>\end{document}
>
>Is there anyone who find my mistake?
>
>Thank you for help in advance,
>Cosi
>_______________________________________________
>PSTricks mailing list
>PSTricks at tug.org
>http://tug.org/mailman/listinfo/pstricks
More information about the PSTricks
mailing list