[Tex/LaTex] What am I doing wrong with PSTricks 3D

pst-3dplotpstricks

I'm starting doing graphs with PSTricks in 3D, but I can't reach a first good result.

What am I doing wrong?

\documentclass[pstricks,border=12pt]{standalone}
\usepackage{pst-node}
\usepackage{pst-plot}
\usepackage[utf8]{inputenc}
\usepackage{eurosym}
% -------- Paquetes de pst-all \usepackage{pst-all}   paquete pstricks para        
\usepackage{pst-plot}
\usepackage{pst-node}
\usepackage{pst-tree}
\usepackage{pst-grad}
\usepackage{pst-coil}
\usepackage{pst-text}
\usepackage{pst-3d}
\usepackage{pst-eps}
\usepackage[tiling]{pst-fill}
\usepackage{pstricks-add}
\usepackage{multido}
% ---- Fin Paquetes de pst-all

\begin{document}
\psset{unit=1.5, Alpha=45, Beta=30}
\begin{pspicture}(-3,-1.5)(3,4)
\pstThreeDCoor[xMin=-4,xMax=4,yMin=-4,
yMax=4,zMax=3, arrows=<->]
\psplotThreeD[plotstyle=line,linecolor=blue,
yPlotpoints=40,xPlotpoints=30, linewidth=0.5pt,
hiddenLine=true](-2,2)(-2,2)
{
x 100 mul cos y 100 mul sin sub
}
\rput[tl](-2,3.5){$f(x,y)=\cos (100x) - \sin (100y) $ }
\end{pspicture}

\end{document} 

Best Answer

You just need the following:

% latex filname.tex
% dvips filname.dvi
% ps2pdf filname.ps

\documentclass{article}

\usepackage{pst-3dplot}

\begin{document}

\begin{pspicture}(-3.2,-2.73)(3.18,3.65)
\pstThreeDCoor[
  xMin = -4,
  xMax = 4,
  yMin = -4,
  yMax = 4,
  zMax = 3,
  arrows = <->
]
\psplotThreeD[
  plotstyle = line,
  linecolor = blue,
  yPlotpoints = 40,
  xPlotpoints = 30,
  linewidth = 0.5pt,
  hiddenLine = true
](-2,2)(-2,2)
{x 100 mul cos y 100 mul sin sub}
\rput(0,3.5){$f(x,y) = \cos(100x) - \sin(100y)$}
\end{pspicture}

\end{document}

output

Related Question