RE: Specifying fill color for a bounded 2D region
- To: mathgroup at smc.vnet.net
- Subject: [mg37904] RE: [mg37782] Specifying fill color for a bounded 2D region
- From: "Wolf, Hartmut" <Hartmut.Wolf at t-systems.com>
- Date: Tue, 19 Nov 2002 03:51:14 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
>-----Original Message----- >From: Steven T. Hatton [mailto:hattons at globalsymmetry.com] >Sent: Wednesday, November 13, 2002 7:11 AM >To: mathgroup at smc.vnet.net >Subject: [mg37904] [mg37782] Specifying fill color for a bounded 2D region > > >This is a long-standing issue for me. I would like to be able to specify a >particular bound region of a graph and determine what collor to fill the >region with. The InequalityGraphics does almost what I want. If I could >specify the color with which to fill each region of the graph produced by >code such as this example from the help browser I would have >my solution: > >\!\(\(InequalityPlot[\ > Xor[\ \((x + 1\/2)\)\^2 + \ y\^2 <= 1, \ \((x - >1\/2)\)\^2 + \ y\^2 <= > 1], \ {x}, \ {y}\ ];\)\) > >This seems like it should be a no-brainer, but I have yet to find a solution >to this. Does anybody know of a way to accomplish such a thing? All I want >to do is produce a Ven diagram using the traditional circles found in >textbooks, and fill the different regions with unique colors. >-- >STH >Hatton's Law: >"There is only One inviolable Law." > > InequalityPlot[Xor[(x + 1/2)^2 + y^2 <= 1, (x - 1/2)^2 + y^2 <= 1], {x}, {y}, Fills -> {Hue[7/9, 0.2, 1], Hue[2/9, 0.2, 1]}, PlotStyle ->{{Thickness[.005], Dashing[{.002,.01}], Hue[0.7]}}]; -- Hartmut Wolf