Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #15732 > unrolled thread
| Started by | Narasimham <mathma18@hotmail.com> |
|---|---|
| First post | 2011-02-11 09:19 +0000 |
| Last post | 2011-02-12 10:19 +0000 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.soft-sys.math.mathematica
3D surface plots - non deletion of data inside undesirable Range Narasimham <mathma18@hotmail.com> - 2011-02-11 09:19 +0000
Re: 3D surface plots - non deletion of data inside undesirable Range "Sjoerd C. de Vries" <sjoerd.c.devries@gmail.com> - 2011-02-12 10:19 +0000
| From | Narasimham <mathma18@hotmail.com> |
|---|---|
| Date | 2011-02-11 09:19 +0000 |
| Subject | 3D surface plots - non deletion of data inside undesirable Range |
| Message-ID | <ij2uvf$7u3$1@smc.vnet.net> |
a=2;b=1;c=3;gl={a Cos[ph-th],b Sin[ph-th],c Sin[ph+th]}/Cos[ph+th];
GL1=ParametricPlot3D[gl,{th,-Pi/4,Pi/4},{ph,-Pi/4,Pi/4},PlotRange-
>{{-3,3},{-3,3},{-3,3}}]
GL2=ParametricPlot3D[gl,{th,-Pi/3,Pi/3},{ph,-Pi/3,Pi/3},PlotRange-
>{{-3,3},{-3,3},{-3,3}}]
Show[GL1,GL2]
Extended plot limits in GL2 beyond those of GL1 result in 3D plot that
fail to delete undesired spurious tracing/tracking data between points
not lying on the required surface.Like 'pen up' data in earlier
graphing s/w. It is OK may be to plot an enclosed solid, but not for a
surface. The difficulty also appeared in earlier Mathematica versions.
Is there then, no work around possible?
Best Regards
Narasimham
[toc] | [next] | [standalone]
| From | "Sjoerd C. de Vries" <sjoerd.c.devries@gmail.com> |
|---|---|
| Date | 2011-02-12 10:19 +0000 |
| Message-ID | <ij5mr9$jk2$1@smc.vnet.net> |
| In reply to | #15732 |
Just add an exclusion to the second graph and you're set:
GL2 = ParametricPlot3D[gl, {th, -Pi/3, Pi/3}, {ph, -Pi/3, Pi/3},
PlotRange -> {{-3, 3}, {-3, 3}, {-3, 3}},
Exclusions -> Cos[ph + th] == 0]
The problem here is the division by zero in places where Cos[ph + th]
== 0.
Cheers -- Sjoerd
On Feb 11, 10:19 am, Narasimham <mathm...@hotmail.com> wrote:
> a=2;b=1;c=3;gl={a Cos[ph-th],b Sin[ph-th],c Sin[ph+th]}/Cos[ph+th=
];
> GL1=ParametricPlot3D[gl,{th,-Pi/4,Pi/4},{ph,-Pi/4,Pi/4},PlotRange->{{-3,3},{-3,3},{-3,3}}]
>
> GL2=ParametricPlot3D[gl,{th,-Pi/3,Pi/3},{ph,-Pi/3,Pi/3},PlotRange->{{-3,3},{-3,3},{-3,3}}]
>
> Show[GL1,GL2]
>
> Extended plot limits in GL2 beyond those of GL1 result in 3D plot that
> fail to delete undesired spurious tracing/tracking data between points
> not lying on the required surface.Like 'pen up' data in earlier
> graphing s/w. It is OK may be to plot an enclosed solid, but not for a
> surface. The difficulty also appeared in earlier Mathematica versions.
> Is there then, no work around possible?
>
> Best Regards
> Narasimham
[toc] | [prev] | [standalone]
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web