5
$\begingroup$

How do I get rid of the mesh in this contour plot?

 ContourPlot[x^2 + y^2, {x, -10, 10}, {y, -10, 10}, Contours -> {1.0, 4.0, 10.5}, ContourStyle -> None, ContourShading -> {RGBColor[1, .2, 0, .1], RGBColor[1, .2, 0, .3], RGBColor[1, .2, 0, .5], RGBColor[1, .2, 0, .7]}] 

enter image description here

Setting the option Mesh->None doesn't help. I'm using Mathematica 12.1.1

$\endgroup$
3
  • $\begingroup$ That's odd I don't see this in 12.1.1 Windows 10. Try adding MeshStyle -> None or BaseStyle->{EdgeForm[None]} and see if that makes a difference. $\endgroup$ Commented Aug 2, 2020 at 1:24
  • $\begingroup$ Still problematic with those options set. I'm on MacOS 10.13.6 $\endgroup$ Commented Aug 2, 2020 at 1:40
  • $\begingroup$ Duplicates: (1400), (20445) $\endgroup$ Commented Aug 2, 2020 at 2:01

2 Answers 2

7
$\begingroup$

From Removing unwanted appearance of underlying mesh, which is a duplicate:

ContourPlot[x^2 + y^2, {x, -10, 10}, {y, -10, 10}, Contours -> {1.0, 4.0, 10.5}, ContourStyle -> None, ContourShading -> {RGBColor[1, .2, 0, .1], RGBColor[1, .2, 0, .3], RGBColor[1, .2, 0, .5], RGBColor[1, .2, 0, .7]}, Method -> {"TransparentPolygonMesh" -> True}] 

enter image description here

$\endgroup$
2
$\begingroup$

The mesh comes from reducing the opacity. To avoid the mesh, use fully opaque colors.

$Version (* "12.1.1 for Mac OS X x86 (64-bit) (June 19, 2020)" *) Clear["Global`*"] ContourPlot[x^2 + y^2, {x, -10, 10}, {y, -10, 10}, Contours -> {1.0, 4.0, 10.5}, ContourStyle -> None, ContourShading -> {LightRed, Pink, Red, Darker[Red]}] 

enter image description here

$\endgroup$

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.