[pstricks] pst-3dplot

Vinay Kanetkar vinay.kanetkar at sympatico.ca
Thu May 8 17:43:20 CEST 2003


Herbert:

I have used pst-3dplot and it is great! Thank you for your efforts.

There is a minor bug either in my code or what I have loaded, my axes
do not seem to be drawn correctly.

Thanks again.
Vinay
vkanetka at uoguelph.ca
==== Code Start
\documentclass[12pt]{article}
\usepackage[dvips]{graphics}

\usepackage{pst-all}      % From PSTricks
\usepackage{pst-3dplot}   % H Voss

\definecolor{brown}{rgb}{.65, .16, .16}
\definecolor{magenta}{rgb}{.6, .0, .5}

\begin{document}
% Example from Page 9 (Documentation on pst-3dplot)
\begin{pspicture}(-6,-4)(6,5)
\psgrid
\psset{Alpha=45,Beta=15}
\psplotThreeD[%
plotstyle=line,%
yPlotpoints=40,xPlotpoints=30,%
linewidth=1pt](-4,4)(-4,4){%
x 3 exp x y 4 exp mul add x 5 div sub 10 mul
2.729 x dup mul y dup mul add neg exp mul
2.729 x 1.225 sub dup mul y dup mul add neg exp add}
\pstThreeDCoor[xMin=-1,xMax=5,yMin=-1,yMax=5,zMin=-1,zMax=5]
\end{pspicture}

\newpage
%example from page 2 in pst-3dplot documentation
\begin{pspicture}(-2,-3)(4,3)
\psgrid[subgriddiv=1]
\pstThreeDCoor[xMin=-1,xMax=4,yMin=-1,yMax=4,zMin=-1,zMax=4,Alpha=45,Beta=30]

\end{pspicture}

\end{document}






More information about the PSTricks mailing list