%
% pstest.tex
% pstricks on ConTeXt mkiv
%
% context pstest.tex
%
\usemodule[pstricks]
\usePSTRICKSmodule[pstricks-add]

\starttext
\startPSTRICKS
\psset{unit=0.6}%
\psset{algebraic=true, VarStep=true,VarStepEpsilon=0.001}
\midaligned{%
\pspicture(-4,-6)(4,6)
\psaxes[linewidth=1.2pt,labels=none,ticks=none]{->}(0,0)(-4,-6)(4,6)
\psplot[linecolor=red,linewidth=2.0pt]{-4}{4}{0.4*x^4-2*x^2+x}
\uput[240](4,0){$x$}\uput[210](0,6){$y$}\uput[135](0,0){$O$}
\endpspicture}
\stopPSTRICKS

\stoptext
