1
$\begingroup$

This question already has an answer here:

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$

marked as duplicate by m_goldberg, MarcoB, Szabolcs, dr.blochwave, Sjoerd C. de Vries Jul 29 '15 at 6:56

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • $\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 Jul 29 '15 at 4:12
  • 1
    $\begingroup$ mathematica.stackexchange.com/q/1400/69 $\endgroup$ – Brett Champion Jul 29 '15 at 4:56

Browse other questions tagged or ask your own question.