Re: Re: Re: Scalar plot in 3D
- To: mathgroup at smc.vnet.net
- Subject: [mg96647] Re: [mg96473] Re: [mg96409] Re: Scalar plot in 3D
- From: Franco Milicchio <franco.milicchio at gmail.com>
- Date: Wed, 18 Feb 2009 04:24:00 -0500 (EST)
- References: <gn11bt$7tg$1@smc.vnet.net> <200902130841.DAA26539@smc.vnet.net> <153706.1234601261285.JavaMail.root@m02> <000001c98e9a$41b57a90$c5206fb0$@net>
On Feb 14, 2009, at 12:49pm, David Park wrote: > Franco, > > Most of the color gradient functions have a scale that goes from 0 > to 1. For > precise control you can use ColorFunctionScaling -> False, and then > use > Rescale on the coloring variable to make it fit that domain. > > > David Park Thanks, this did the right job! This is my code given radii r and R, and a list { {u, v}->scalarValue }: ParametricPlot3D[ { {(R + r*Cos[v]) Sin[u], (R + r*Cos[v]) Cos[u], r*Sin[v]}}, {u, 0, 2 Pi}, {v, 0, 2 Pi}, ColorFunction -> Function[{x, y, z, u, v}, Hue[First[Nearest[vals, {v, u}]]]], ColorFunctionScaling -> False, Mesh -> 19, MeshStyle -> Gray ] I rescaled the field with Rescale[] as you suggested. Do you have any suggestion on how to improve this code? -- Franco Milicchio <franco.milicchio at gmail.com> DiS - Dept. of Studies on Structures DIA - Dept. of Computer Science and Engineering University Roma Tre http://plm.dia.uniroma3.it/milicchio/
- References:
- Re: Scalar plot in 3D
- From: dh <dh@metrohm.com>
- Re: Scalar plot in 3D