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


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

Transparent ContourPlot

Started bydg <davide.guarisco@gmail.com>
First post2011-12-16 11:05 +0000
Last post2011-12-17 07:50 +0000
Articles 2 — 2 participants

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


Contents

  Transparent ContourPlot dg <davide.guarisco@gmail.com> - 2011-12-16 11:05 +0000
    Re: Transparent ContourPlot Armand Tamzarian <mike.honeychurch@gmail.com> - 2011-12-17 07:50 +0000

#7278 — Transparent ContourPlot

Fromdg <davide.guarisco@gmail.com>
Date2011-12-16 11:05 +0000
SubjectTransparent ContourPlot
Message-ID<jcf8mi$716$1@smc.vnet.net>
I have been trying to create a contour plot where the contour shading is transparent, so that I can draw gridlines and see them through the contours. I can't seem to figure this one out....

This produces a mess:

ContourPlot[x y^2 + 2, {x, -2, 2}, {y, -2, 2}, PlotRange -> {-10, 10},
  ContourShading -> {Orange, Opacity[0.5]}]

[toc] | [next] | [standalone]


#7308

FromArmand Tamzarian <mike.honeychurch@gmail.com>
Date2011-12-17 07:50 +0000
Message-ID<jchhkf$ij6$1@smc.vnet.net>
In reply to#7278
On Dec 16, 10:05 pm, dg <davide.guari...@gmail.com> wrote:
> I have been trying to create a contour plot where the contour shading is 
transparent, so that I can draw gridlines and see them through the contours
. I can't seem to figure this one out....
>
> This produces a mess:
>
> ContourPlot[x y^2 + 2, {x, -2, 2}, {y, -2, 2}, PlotRange -> {-10, 10},
>   ContourShading -> {Orange, Opacity[0.5]}]

I'm guessing this might be what you want:

ContourPlot[x y^2 + 2, {x, -2, 2}, {y, -2, 2}, PlotRange -> {-10, 10},
  ContourShading -> {{Orange, Opacity[0.5]}}]

{Orange, Opacity[0.5]} are in a list to indicate they apply together.

Mike

[toc] | [prev] | [standalone]


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


csiph-web