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


Groups > comp.soft-sys.math.mathematica > #11076

Re: Countur/Density plot on sphere

From Blaž Kranjc <blaz.kranjc91@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Countur/Density plot on sphere
Date 2012-07-26 07:33 +0000
Message-ID <juqrse$64v$1@smc.vnet.net> (permalink)
References <20120725063355.F39326866@smc.vnet.net>
Organization Time-Warner Telecom

Show all headers | View raw


Suprisingly this work now (I tried it 10+ times before and it didn't), I
just have another question,
SphericalPlot3D[1, {t, 0, 2 Pi}, {p, 0, Pi},
 ColorFunction ->
   Function[{x, y, z, t, p, r}, Hue[f[Abs@z]]] and   SphericalPlot3D[1, {t,
0, 2 Pi}, {p, 0, Pi},
 ColorFunction ->
   Function[{x, y, z, t, p, r}, Hue[f[z]]]
returned the same plots, therefore this isn't really plotting my values??
I don't really trust this now.

I also tried calculating a lot of points on a sphere and finding a value in
given point, than Show them all with Graphics3D giving them color based on
value, BUT sphere loses it's depth and is full of holes now. so it doesn't
look ok.

2012/7/25 Bob Hanlon <hanlonr357@gmail.com>

> This is quite slow but if I understand what you want
>
> f[t_?NumericQ, p_?NumericQ] :=
>  NIntegrate[(t + x)/(1 + p + x), {x, 0, 1}]
>
>
> SphericalPlot3D[1, {t, 0, 2 Pi}, {p, 0, Pi},
>  ColorFunction ->
>   Function[{x, y, z, t, p, r}, Hue[f[t, p]]],
>  Mesh -> 10,
>  MeshFunctions ->
>   {Function[{x, y, z, t, p, r}, f[t, p]]}]
>
>
> Bob Hanlon
>
>
> On Wed, Jul 25, 2012 at 2:33 AM, Bla=BE Kranjc <blaz.kranjc91@gmail.com>
> wrote:
> > Hello,
> > I have a problem in which I need to evaluate a function on the the
> surface of the sphere. I've used ColorFunction and MeshFunctions before,
> but they seem to work only on analicial functions, my function is numerical
> integration in given point and returns a number. Is there any way to plot
> that kind of graph (colored sphere depending on a value) or can anybody
> suggest other ways to represent this.
> >
> > Thank you,
> >
> > Bla=C5=BE Kranjc
> >
>

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Re: Countur/Density plot on sphere Blaž Kranjc <blaz.kranjc91@gmail.com> - 2012-07-26 07:33 +0000

csiph-web