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


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

color function

Started byRick C <rick.cangelosi@gmail.com>
First post2012-10-09 04:44 +0000
Last post2012-10-10 05:32 +0000
Articles 2 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  color function Rick C <rick.cangelosi@gmail.com> - 2012-10-09 04:44 +0000
    Re: color function Rick C <rick.cangelosi@gmail.com> - 2012-10-10 05:32 +0000

#12011 — color function

FromRick C <rick.cangelosi@gmail.com>
Date2012-10-09 04:44 +0000
Subjectcolor function
Message-ID<k50a4b$3ou$1@smc.vnet.net>
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] | [next] | [standalone]


#12027

FromRick C <rick.cangelosi@gmail.com>
Date2012-10-10 05:32 +0000
Message-ID<k531a5$93o$1@smc.vnet.net>
In reply to#12011
Please disregard my question - I figured out how to do what I needed to do.  It was embarrassingly simple.

[toc] | [prev] | [standalone]


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


csiph-web