Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

RegionPlot color

846 views
Skip to first unread message

None None

unread,
Apr 7, 2008, 5:20:50 AM4/7/08
to
Dear Sir

Mathematica 6 produces a region and fills it with default color in "RegionPlot" (drawing 2D inequality). I wish to use the color elsewhere in graphics applications. I could not recognize the color and the scheme associated with it. kindly guide me on locating this color among mathematica 6 color schemes.

Kind regards


Will Robertson

unread,
Apr 8, 2008, 5:37:08 AM4/8/08
to
On Apr 7, 6:20 pm, None None <worm9...@yahoo.com> wrote:
> Mathematica 6 produces a region and fills it with default color in
"RegionPlot" (drawing 2D inequality). I wish to use the color elsewhere in graphics applications. I could not recognize the color and the scheme associated with it. kindly guide me on locating this color among mathematica 6 color schemes.

I tried replicating this colour once (not very hard) and decided it
was too hard :) It's not exactly a shade of blue, although it's too
far from Nest[Lighter,Blue,4]:

Show@{RegionPlot[x < 0.5, {x, 0, 1}, {y, 0, 1}],
RegionPlot[x > 0.5, {x, 0, 1}, {y, 0, 1},
PlotStyle -> Nest[Lighter, Blue, 4]]}

Which is, now that I look at it, the same as {Opacity[0.2],Blue}:

Show@{RegionPlot[x < 0.33, {x, 0, 1}, {y, 0, 1}],
RegionPlot[0.33 < x < 0.66, {x, 0, 1}, {y, 0, 1},
PlotStyle -> {Opacity[0.2], Blue}],
RegionPlot[x > 0.66, {x, 0, 1}, {y, 0, 1},
PlotStyle -> Nest[Lighter, Blue, 4]]}

Usually I just apply my own colours :) but it would be nice to know
exactly which ones Mathematica uses. I suppose it wouldn't be hard just to
figure it out by inspecting the plot that get drawn by default and
extracting the colour information.

By the way, on the offchance you're outputting EPS graphics, this
would be a convenient time to shamelessly plug my "FakeRegionPlot"
package:
<http://library.wolfram.com/infocenter/MathSource/7074/>

Cheers,
Will

Bob Hanlon

unread,
Apr 8, 2008, 5:37:19 AM4/8/08
to
rp = RegionPlot[x^2 + y^3 < 2, {x, -2, 2},
{y, -2, 2}]

clr = Cases[rp, RGBColor[__], Infinity][[1]]

Graphics[{clr, Rectangle[{0, 0}]}]


Bob Hanlon

---- None None <worm...@yahoo.com> wrote:
> Dear Sir


>
> Mathematica 6 produces a region and fills it with default color in "RegionPlot" (drawing 2D inequality). I wish to use the color elsewhere in graphics applications. I could not recognize the color and the scheme associated with it. kindly guide me on locating this color among mathematica 6 color schemes.
>

> Kind regards
>
>


Bob Hanlon

unread,
Apr 8, 2008, 5:37:30 AM4/8/08
to

Curtis Osterhoudt

unread,
Apr 8, 2008, 5:39:39 AM4/8/08
to
Hi,

I evaluated a "RegionPlot" command, and then applied "FullForm" to the
output. From that, it seems that the color you're looking for is given in the
RGB colorscale as: RGBColor[0.798413061722744`, 0.824719615472648`,
0.968322270542458`].

Hope that helps!
C.O.

On Monday 07 April 2008 03:19:06 None None wrote:
> Dear Sir
>
> Mathematica 6 produces a region and fills it with default color in
> "RegionPlot" (drawing 2D inequality). I wish to use the color elsewhere in
> graphics applications. I could not recognize the color and the scheme
> associated with it. kindly guide me on locating this color among
> mathematica 6 color schemes.
>
> Kind regards

--
==========================================================
Curtis Osterhoudt
cfo@remove_this.lanl.and_this.gov
PGP Key ID: 0x4DCA2A10
Please avoid sending me Word or PowerPoint attachments
See http://www.gnu.org/philosophy/no-word-attachments.html
==========================================================

D. Grady

unread,
Apr 8, 2008, 5:41:52 AM4/8/08
to
On Apr 7, 4:20 am, None None <worm9...@yahoo.com> wrote:
> Dear Sir
>
> Mathematica 6 produces a region and fills it with default color in =
"RegionPlot" (drawing 2D inequality). I wish to use the color elsewhere in g=
raphics applications. I could not recognize the color and the scheme associa=
ted with it. kindly guide me on locating this color among mathematica 6 colo=
r schemes.
>
> Kind regards

The color they use is


RGBColor[0.798413061722744`, 0.824719615472648`, 0.968322270542458`]

although I'm not sure if this comes from some pre-defined palette or
what. It doesn't appear to be in any of the indexed color palettes.

-Daniel

0 new messages