# Using pst-3dplot together with viewpoint

I would like to change the viewpoint in the following picture:

\documentclass[pstricks, border=0pt]{standalone}
\usepackage{pstricks}
\usepackage{pst-3dplot}

\begin{document}
\begin{pspicture}(-4,-4)(4,4)
\psset{viewpoint=1 1 1}
\pstThreeDCoor[xMin=-0.2,xMax=4,yMin=-0.2,yMax=4, zMin=-0.2,zMax=4]
{\psset{fillcolor=blue,fillstyle=solid, linewidth=0.5pt}
\pstThreeDSquare(0,0,0)(3,0,0)(0,3,0)}
\end{pspicture}
\end{document}


But this way viewpoint has no effect.

There is no viewpoint key in pst-3dplot. This key is defined in pst-solides3d. Instead, pst-3dplot uses Alpha (rotation of the horizontal axes around the vertical axis;default: 45) and Beta (vertical rotation angle, default: 30).

Here is an example:

\documentclass[svgnames, border=6pt]{standalone}
\usepackage{pstricks}
\usepackage{pst-3dplot, pst-solides3d}
\usepackage{auto-pst-pdf}

\begin{document}

\begin{pspicture}
% \psset{viewpoint=1 3 1}
\psset{Alpha =140, Beta =40}
\psset{fillcolor=LightSteelBlue!60!Gainsboro!30!, fillstyle=solid, linewidth=0.5pt}
\pstThreeDCoor[xMin=-0.2,xMax=4,yMin=-0.2,yMax=4, zMin=-0.2,zMax=4]
\pstThreeDSquare(0,0,0)(3,0,0)(0,3,0)
\end{pspicture}

\end{document}


• There is no need to put \pstThreeDSquare in braces – user2478 Aug 5 '17 at 8:55
• @Herbert: You're perfectly right. It was taken for the O.P.'s code, but I don't know why I didn't change that… – Bernard Aug 5 '17 at 9:43
• no, in the original post the { .... } where around two lines – user2478 Aug 5 '17 at 10:14
• Yes, and I removed one superfluous line without removing the braces. – Bernard Aug 5 '17 at 10:43