[pstricks] behavior of \parametricplotThreeD

Herbert Voss Herbert.Voss at FU-Berlin.DE
Fri Dec 30 18:03:25 CET 2011


Am 30.12.2011 16:45, schrieb Nitecki, Zbigniew H.:
> I am trying to draw a hyperbola in the xy-plane, and another, similar one in the yz-plane.
> When I use \parametricplotThreeD, I get the first one, but the second ends up as a line segment on the z-axis.
>
> More precisely, the code below (trying to draw one branch of each) leads to the attached picture.  Is the problem somehow related to the fact that the first entry in the second (blue) plot is zero?
>
> \begin{pspicture}(-3,-3.5)(3,3.5)

change the view of coordinate system, because you are
looking directly into the curve. Try

\psset{Alpha=30}

and you'll see the blue curve.

> \pstThreeDCoor%
> [linecolor=black, xMin=-3, xMax=4,yMin=-3, yMax=4,zMin=-4, zMax=4]
> \parametricplotThreeD[linecolor=red](-2,2){%
> t dup t mul 4 mul 36 add sqrt
> t
> 0
> }
>
> \parametricplotThreeD[linecolor=blue](-2,2){%
> 0
> t
> t dup t mul 4 mul 36 add sqrt 3 div
> }
> \end{pspicture}

Herbert


More information about the PSTricks mailing list