Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2011

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Meshshading

  • To: mathgroup at smc.vnet.net
  • Subject: [mg119775] Re: Meshshading
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Tue, 21 Jun 2011 08:24:56 -0400 (EDT)
  • Reply-to: hanlonr at cox.net

Partition[ParametricPlot[{(v + u) Cos[u], (v + u) Sin[u]},
     {u, 0, 4 Pi}, {v, 0, 5},
     ColorFunction -> Function[{x, y, u, v}, Hue[#]],
     MeshFunctions -> {#3 &},
     Axes -> False] & /@ {x, y, u, v}, 2] // Grid

ParametricPlot[{(v + u) Cos[u], (v + u) Sin[u]},
 {u, 0, 4 Pi}, {v, 0, 5},
 ColorFunction -> Function[{x, y, u, v}, Hue[u]],
 ColorFunctionScaling -> False,
 MeshFunctions -> {#3 &},
 Axes -> False]


Bob Hanlon

---- Jean-Louis Garcin <jeanlouisgarcin at free.fr> wrote: 

=============

 Thank you for your answer  but it does not work like I want.
 The colors are always the same.   Yellow and Black  don't change with 
the position of the mesh.
In the example  of the Wolfram Website one of the color change.
I think the program uses the function ColorFunction but there is only 
one ColorFunction and it is used in the  the line MeshShading -> {Black, 
Automatic}.

I would want that the Color Black changes also.

  Thank you

  Jean-Louis Garcin



Le 21 juin 2011 =E0 01:55, Bob Hanlon a =E9crit :

>
> ParametricPlot[{(v + u) Cos[u], (v + u) Sin[u]},
> {u, 0, 4 Pi}, {v, 0, 5},
> MeshFunctions -> {#3 &},
> MeshShading -> {Black, Yellow},
> Axes -> False]
>
>
> Bob Hanlon
>
> ---- Jean-Louis Garcin <jeanlouisgarcin at free.fr> wrote:
>
> =============
>
> Hello,
>
>
> In the documentation center of the  Wolfram Website we  find the
> following example:
>
>   ParametricPlot[{(v + u) Cos[u], (v + u) Sin[u]}, {u, 0, 4 Pi}, {v, 0, 5},
> ColorFunction -> Function[{x, y, u, v}, Hue[x]], MeshFunctions -> {#3 &},
> MeshShading -> {Black, Automatic}]
>
>
> One color is always the same: Black and I think that the other one
> depends of the row of the mesh.
>
> Is  it possible that the two colors  depends of the of the row of the mesh?
>  And how to do it?
>
>   Thank you very much for your answer.
>
>
> Jean-Louis Garcin
>


  • Prev by Date: Re: getting empty lines when copying as MathML
  • Next by Date: Re: random financial portfolios
  • Previous by thread: Re: Meshshading
  • Next by thread: Is the iterated continued fraction from convergents for Pi/2 equal to 3/2?