1
$\begingroup$

Consider this example:

Show[{
  Plot[Exp[-x^2/40]/5, {x, -400, 400}, Axes -> False, Frame -> True, PlotRange -> All], 
  RegionPlot[Abs[x] > 320, {x, -400, 400}, {y, -2, 2}, Mesh -> None]
  },
 PlotRange -> {All, {0, 0.2}}, AspectRatio -> 1/GoldenRatio]

enter image description here

We can see although I set the Mesh->None, RegionPlot still generate those "meshes".

However, if I reverse the order of the two Plot functions, those "meshes" disappears.

Show[{
  RegionPlot[Abs[x] > 320, {x, -400, 400}, {y, -2, 2}, Mesh -> None],
  Plot[Exp[-x^2/40]/5, {x, -400, 400}, Axes -> False, Frame -> True, PlotRange -> All]
  },
 PlotRange -> {All, {0, 0.2}}, AspectRatio -> 1/GoldenRatio]

System: version 10.2 on OS X 10.10.5.

Is this a bug? Can you test on other systems?

enter image description here

$\endgroup$
2
  • $\begingroup$ It looks like a bug to me. I can reproduce it with V.10.1 running on OS X 10.10.2. BTW, you should not need to give the option Mesh -> None because it is the default for RegionPlot. $\endgroup$
    – m_goldberg
    Commented Jul 29, 2015 at 4:12
  • 1
    $\begingroup$ mathematica.stackexchange.com/q/1400/69 $\endgroup$ Commented Jul 29, 2015 at 4:56

0

Browse other questions tagged or ask your own question.