Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to do 3D plot of vertical planes?

1,883 views
Skip to first unread message

Loren Gibson

unread,
May 1, 1998, 3:00:00 AM5/1/98
to

Can anyone suggest to me a method for plotting a surface which is a
vertical plane, such as x=5, x+y=0, the xz plane, etc.? It appears to
me that most of the typical methods of plotting 3-D surfaces don't lend
themselves well to vertical planes. TIA.

--
Loren J. Gibson
ljgi...@csi.com

dwcp

unread,
May 5, 1998, 3:00:00 AM5/5/98
to

G'day,

Try this...

ParametricPlot3D[{5, y, z}, {y,-5,5},{z,-5,5}]

.... to get the plane x=5.

Here's what Mathematica says:

In[1]:= ?ParametricPlot3D
ParametricPlot3D[{fx, fy, fz}, {t, tmin, tmax}] produces a
three-dimensional
space curve parametrized by a variable t which runs from tmin to
tmax.
ParametricPlot3D[{fx, fy, fz}, {t, tmin, tmax}, {u, umin, umax}]
produces a
three-dimensional surface parametrized by t and u.
ParametricPlot3D[{fx,
fy, fz, s}, ... ] shades the plot according to the color
specification s.
ParametricPlot3D[{{fx, fy, fz}, {gx, gy, gz}, ... }, ... ] plots
several
objects together.

-David.

--
David Pearson, Phone: +44 (0)118 9318741 ESSC,
Fax: +44 (0)118 9316413 University of Reading,
Reading RG6 6AL, Email: dw...@mail.nerc-essc.ac.uk UK.


Seth Chandler

unread,
May 5, 1998, 3:00:00 AM5/5/98
to

The command you're missing is ParametricPlot3D, which creates the sort
of Graphics objects you need.

The x=5 plane can be produced by
ParametricPlot3D[{5,y,z},{y,-5,5},{z,-6,6},PlotPoints->2]. the x+y=0
plane can be produced by
ParametricPlot3D[{-y,y,z},{y,-5,5},{z,-6,6},PlotPoints->2]. The
PlotPoints->2 option just make the graphic object more plane-like
instead of looking like a bunch of vertical polygons.

Bruce Wolk

unread,
May 5, 1998, 3:00:00 AM5/5/98
to

On 1 May 1998 03:02:13 -0400, "Loren Gibson" <ljgi...@csi.com> wrote:

>Can anyone suggest to me a method for plotting a surface which is a
>vertical plane, such as x=5, x+y=0, the xz plane, etc.? It appears to
>me that most of the typical methods of plotting 3-D surfaces don't lend
>themselves well to vertical planes. TIA.
>
>--
>Loren J. Gibson
>ljgi...@csi.com

How about the following for the x+y=0 case.

In[25]:=
ParametricPlot3D[{x,-x,z},{x,-2,2},{z,-2,2}]

You may want to spruce it up with some color.

Cheers, Bruce

Allan Hayes

unread,
May 5, 1998, 3:00:00 AM5/5/98
to

In article <6ibs1l$t...@smc.vnet.net>, "Loren Gibson" <ljgi...@csi.com>
wrote:

>Can anyone suggest to me a method for plotting a surface which is a
>vertical plane, such as x=5, x+y=0, the xz plane, etc.? It appears to
>me that most of the typical methods of plotting 3-D surfaces don't lend
>themselves well to vertical planes. TIA.

Loren,
If you are using
Plot3D[expr,{x,xmin, xmax}, {ymin, ymax}] you might try
ParametricPlot3D[{x,y, expr},{x,xmin, xmax}, {ymin, ymax}]

Allan Hayes: Training and Consulting Leicester, UK
h...@haystack.demon.co.uk
voice: +44 (0)116 271 4198
fax: +44 (0)116 271 8642


Bill Bertram

unread,
May 5, 1998, 3:00:00 AM5/5/98
to

Loren Gibson wrote:
>
> Can anyone suggest to me a method for plotting a surface which is a
> vertical plane, such as x=5, x+y=0, the xz plane, etc.? It appears to
> me that most of the typical methods of plotting 3-D surfaces don't lend
> themselves well to vertical planes. TIA.

You could try ParamericPlot3D. I don't know if it will do everything you
want, but for the simple examples you have given it seems OK. For
example, the x-z plane can be drawn with,

sxz=ParametricPlot3D[{u,0,v},{u,-5,5},{v,-5,5}];

and the plane x+y==0 is simply,

ss=ParametricPlot3D[{-u,u,v},{u,-5,5},{v,-5,5}];

You can then combine these using, Show[sxz,ss];

Hope this helps,
Bill


Vince Giambalvo

unread,
May 7, 1998, 3:00:00 AM5/7/98
to

Is there an easy way to put in mesh/grid lines on a contour plot? I can
do it by adding lots of equations of the form x == n and y == n for
wherever I wnat the lines to be, but that is slow and ugly.

Vince


0 new messages