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


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

Re: Meshshading

From Jean-Louis Garcin <jeanlouisgarcin@free.fr>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Meshshading
Date 2011-06-22 07:44 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <its6ge$5vc$1@smc.vnet.net> (permalink)
References <20110620195531.954AR.827192.imail@eastrmwml32> <201106210956.FAA21053@smc.vnet.net> <304BE863-53DE-46B0-8C97-846CF38703B5@gmail.com>

Show all headers | View raw


   Hello


  Thank you for this answer.

  I think it is the solution of my problem.

Best regards

   Jean-Louis Garcin





Le 21 juin 2011 =E0 13:11, Heike Gramberg a =E9crit :

> As you surmised yourself, MeshShading->Automatic uses ColorFunction to colour
> the area between the mesh lines. Unfortunately, you can only provide one ColorFunction in
> ParametricPlot. If you want to shade the areas between the mesh lines using two
> different ColorFunctions, you could do something like
>
> pl1 = 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 -> {None, Automatic}];
> pl2 = ParametricPlot[{(v + u) Cos[u], (v + u) Sin[u]}, {u, 0,
>    4 Pi}, {v, 0, 5},
>   ColorFunction -> Function[{x, y, u, v}, GrayLevel[v]],
>   MeshFunctions -> {#3 &}, MeshShading -> {Automatic, None}];
> Show[pl1, pl2]
>
> Heike.
>
>
> On 21 Jun 2011, at 10:56, Jean-Louis Garcin 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@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
>>>
>>>
>>
>>
>
>

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


Thread

Re: Meshshading Jean-Louis Garcin <jeanlouisgarcin@free.fr> - 2011-06-22 07:44 +0000

csiph-web