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


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

Re: Countur/Density plot on sphere

Started byBob Hanlon <hanlonr357@gmail.com>
First post2012-07-26 07:37 +0000
Last post2012-07-26 07:37 +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: Countur/Density plot on sphere Bob Hanlon <hanlonr357@gmail.com> - 2012-07-26 07:37 +0000

#11083 — Re: Countur/Density plot on sphere

FromBob Hanlon <hanlonr357@gmail.com>
Date2012-07-26 07:37 +0000
SubjectRe: Countur/Density plot on sphere
Message-ID<juqs40$67k$1@smc.vnet.net>
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=C5=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
>

[toc] | [standalone]


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


csiph-web