[pstricks] Plotting a function

Herbert Voss Herbert.Voss at FU-Berlin.DE
Sun Jun 1 17:35:49 CEST 2008


Cosi Lein schrieb:

> I want to plot this function:
>  
> -0.005x^2+600x-20000

> Is there anyone who find my mistake?

A problem with the units ...

\documentclass{article}
\pagestyle{empty}
\usepackage{pstricks-add}

\begin{document}
\psset{algebraic,xunit=1mm,yunit=0.001mm}
\begin{pspicture}(0,-15000)(125,40000)
\psaxes[dx=1.5cm, dy=0.5cm,
	Dx=15,Dy=5000,ticksize=-2pt,
	linewidth=0.7pt]{->}(0,0)(100,40000)
\psplot[linewidth=1pt,linecolor=red]{0}{100}%
	{-0.005*x^2+600*x-20000}
\psdot(*60 {-0.005*x^2+600*x-20000})
\end{pspicture}

\end{document}


Herbert




More information about the PSTricks mailing list