
\documentclass[pstricks,border={0pt -5mm 0pt -1mm}]{standalone}
\usepackage{pst-plot,pst-math}
\usepackage[nomessages]{fp}
\FPeval\PiQ{round(pi/4:3)}
\psset{algebraic,plotpoints=100}
\newpsstyle{gridstyle}
{
gridwidth=0.4pt,% 0.8pt
gridcolor=red!30,% black
griddots=0,% 0
%=====================================
gridlabels=0pt,% 10pt
gridfont=NimbusSanL-Regu,
gridlabelcolor=blue!50,% black, must not use dvipsnames
%=====================================
subgriddiv=5,% 5
subgridwidth=0.2pt,% 0.4pt
subgridcolor=green!30,% gray
subgriddots=0,% 0
}
\begin{document}
\begin{pspicture*}[showgrid=bottom](-5.2,-\psPi)(5.7,\psPi)
\psplot[linecolor=blue]{0}{5}{sqrt(x)}
\psplot[linecolor=red]{-5}{5}{ATAN(x)}
\psaxes
[
ytrigLabels=true,
linewidth=\pslinewidth,
labelFontSize=\scriptscriptstyle,
tickcolor=gray,
ticksize=-1.5pt 1.5pt,
xlabelsep=3pt,
arrowscale=1,
trigLabelBase=4,
dy=\PiQ,% must come before yunit to avoid getting a strange output!
yunit=\PiQ,
]{->}(0,0)(-5.1,-\psPi)(5.3,\psPi)[$x$,0][$y$,90]
\end{pspicture*}
\end{document}
sqrt(x)you must ensure that the domain doesn't include negative numbers:\psplot[...]{0}{5}{sqrt(x)}works. Theatanfunction in Postscript has two variables. – egreg Sep 25 '12 at 22:10Sqrt(x)with an uppercase S, then it returns 0 for negative values. – Herbert Sep 26 '12 at 10:21