I get the error:
! Undefined control sequence.<recently read> \c@lor@to@ps }
when trying the following graph
\documentclass[11pt]{article}
\usepackage[usenames,dvipsnames]{pstricks}
\usepackage{epsfig}
\usepackage{pst-grad} % For gradients
\usepackage{pst-plot} % For axes
\usepackage{mathtext}
\begin{document}
\psscalebox{1.0 1.0} % Change this value to rescale the drawing.
{
\begin{pspicture}(0,-2.4101124)(5.36,2.4101124)
\psline[linecolor=black, linewidth=0.04, arrowsize=0.05291666666666667cm 2.0,arrowlength=1.4,arrowinset=0.0]{->}(0.8,-2.3398876)(0.8,2.4601123)
\psline[linecolor=black, linewidth=0.04, arrowsize=0.05291666666666667cm 2.0,arrowlength=1.4,arrowinset=0.0]{->}(0.4,-1.9398876)(5.2,-1.9398876)
\psline[linecolor=red, linewidth=0.04](1.2,-1.5398877)(4.8,2.0601122)(4.8,2.0601122)
\rput[bl](0.0,2.0601122){\textcolor{red}{f(x)}}
\rput[bl](5.2,-2.3398876){\textcolor{red}{x}}
\end{pspicture}
}
\end{document}
It should be something easy, but I'm not a pro. Please, help me!

