Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #16026 > unrolled thread

Re: 3DAspectRatio

Started byBob Hanlon <hanlonr357@gmail.com>
First post2013-10-08 07:53 +0000
Last post2013-10-08 07:53 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: 3DAspectRatio Bob Hanlon <hanlonr357@gmail.com> - 2013-10-08 07:53 +0000

#16026 — Re: 3DAspectRatio

FromBob Hanlon <hanlonr357@gmail.com>
Date2013-10-08 07:53 +0000
SubjectRe: 3DAspectRatio
Message-ID<l30dld$4i$1@smc.vnet.net>
a = 3; c = 5;
ConPl = ContourPlot3D[
  (Sqrt[x^2 + y^2] - c)^2 + z^2 == a^2,
  {x, -8, 8}, {y, -8, 8}, {z, -3.1, 3.1},
  PlotRange -> {{-8, 8}, {-8, 8}, {-4, 4}},
  BoxRatios -> {1, 1, 1/2}]
ParPl = ParametricPlot3D[
  {(a Cos[u] + c) Cos[v], (a Cos[u] + c) Sin[v], a Sin[u]},
  {u, 0, 2 Pi}, {v, 0, 2 Pi},
  PlotRange -> {{-8, 8}, {-8, 8}, {-4, 4}},
  BoxRatios -> {1, 1, 1/2}]
Sph = ParametricPlot3D[
  {Cos[ph] Cos[t], Cos[ph] Sin[t], Sin[ph]},
  {ph, -1.5, 1.5}, {t, 0, 2 Pi},
  PlotRange -> {{-8, 8}, {-8, 8}, {-4, 4}},
  BoxRatios -> {1, 1, 1/2}]
Show[ParPl, ConPl, Sph,
 PlotRange -> {{-8, 8}, {-8, 8}, {-4, 4}},
 BoxRatios -> {1, 1, 1/2}]
Show[ConPl, ParPl, Sph,
 PlotRange -> {{-8, 8}, {-8, 8}, {-4, 4}},
 BoxRatios -> {1, 1, 1/2}]



Bob Hanlon




On Mon, Oct 7, 2013 at 8:24 AM, Narasimham <mathma18@gmail.com> wrote:

> a=3; c=5;
> ConPl=ContourPlot3D[ (Sqrt[x^2+y^2]- c)^2 + z^2 == a ^2 ,
> {x,-8,8},{y,-8,8},{z,-3.1,3.1}]
> ParPl=ParametricPlot3D[{ (a Cos[u]+c) Cos[v],  (a Cos[u]+c) Sin[v],  a
> Sin[u]},{u,0, 2Pi},{v,0, 2 Pi}]
> Sph= ParametricPlot3D[1{ Cos[ph]Cos[t], Cos[ph] Sin[t], Sin[ph]},
> {ph,-1.5,1.5},{t,0, 2 Pi}]
> Show[ParPl,ConPl,Sph]
> Show[ConPl,ParPl,Sph]
>
> Is there some way to ContourPlot3D maintaining AspectRatio  along all its
> three axes?
>
> Regards
> Narasimham
>
>

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web