Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #12011
| From | Rick C <rick.cangelosi@gmail.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | color function |
| Date | 2012-10-09 04:44 +0000 |
| Message-ID | <k50a4b$3ou$1@smc.vnet.net> (permalink) |
| Organization | Time-Warner Telecom |
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.
Back to comp.soft-sys.math.mathematica | Previous | Next — Next in thread | Find similar | Unroll thread
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
csiph-web