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


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

Re: color function

Started byBarrie Stokes <Barrie.Stokes@newcastle.edu.au>
First post2012-10-10 05:24 +0000
Last post2012-10-10 05:24 +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: color function Barrie Stokes <Barrie.Stokes@newcastle.edu.au> - 2012-10-10 05:24 +0000

#12022 — Re: color function

FromBarrie Stokes <Barrie.Stokes@newcastle.edu.au>
Date2012-10-10 05:24 +0000
SubjectRe: color function
Message-ID<k530ra$90m$1@smc.vnet.net>
Hi again

Oops - wrong plotting function last time ...

ContourPlot[x^2 + y^2, {x, -10, 10}, {y, -10, 10}, 
 ColorFunction -> (Which[# < 0.2, Hue[.11], True, Hue[.73]] &)]

Barrie

>>> On 09/10/2012 at 3:38 pm, in message <20121009043807.A9EB96886@smc.vnet.net>,
Rick C <rick.cangelosi@gmail.com> wrote:
> Hello:
> 
> I am working with a contour plot and I am difficulty creating a color 
> function which, for example, will color regions on the plane Blue where if z < 
> 1 and color regions on the plane Brown if z >= 1.  I tried
> 
> ContourPlot[f[x, y], {x, -10, 10}, {y, -10, 10}, ColorFunction -> cfun]
> 
> where 
> 
> cfun[z_] := Which[z < 1, Hue[.12], z >= 1, Hue[.63]]
> 
> Thanks in advance for any help you can provide.

[toc] | [standalone]


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


csiph-web