[pstricks] Plotting function

Herbert Voss Herbert.Voss at alumni.TU-Berlin.DE
Tue Sep 21 18:38:38 CEST 2004


Denis Verges wrote:

> I want plot with pst-3dplot the function :
> 
> z = 2x(y + 1)
> 
> with 0 < x 10, 0 < y < 12 and 0 < z < 260
> 
> In fact, I want the lines :
> z = 40, z = 80, z = 120, z = 160, z = 200, z = 240.

this are 6 functions y=f(x), no need for the 3D-plot
in this case. Here is an example for z=f(x,y) with
only 6 values for y

Herbert



\listfiles
\documentclass[12pt]{article}
\usepackage{pst-3dplot}

\begin{document}

\begin{pspicture}(-6,-3)(4,7)
   \psset{Beta=30,Alpha=60}
   \pstThreeDCoor
   \psset{unit=0.1}
   \psplotThreeD[drawStyle=xyLines,yPlotpoints=6](0,100)(0,12)%
         {x dup add y 1 add mul 20 div}% 20 div only for scaling
\end{pspicture}

\end{document}




-- 
http://TeXnik.de/
http://PSTricks.de/
ftp://ftp.dante.de/tex-archive/info/math/voss/Voss-Mathmode.pdf
http://www.dante.de/faq/de-tex-faq/
http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes




More information about the PSTricks mailing list