Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

13
  • 1
    $\begingroup$ Try MeshShading -> {Green, Yellow} see the docs on MeshFunctions >> Details on how MeshFunctions work. $\endgroup$ Commented Mar 3, 2017 at 16:35
  • $\begingroup$ you can use both ... MeshStyle -> Red, MeshShading -> {Green, Yellow} ...; the two options do different things. Regarding the default mesh functions there is a table in MeshFunctions>> Details showing the default settings for various *Plot* functions. For Plot, the default mesh function uses the x values (#1& is the first argument) $\endgroup$ Commented Mar 3, 2017 at 16:44
  • $\begingroup$ What does the #1& refer to? $\endgroup$ Commented Mar 3, 2017 at 16:48
  • $\begingroup$ Do you want Plot[x^3, {x, -20, 20}, PlotLabel -> "Title", PlotStyle -> Thick, MeshStyle -> {Directive[Green, PointSize[Medium]], Directive[Yellow, PointSize[Medium]]}, MeshFunctions -> {#1 &, #1 &}, Mesh -> {Range[-20, 20, 2], Range[-20, 20 , 4]}] $\endgroup$ Commented Mar 3, 2017 at 16:49
  • 2
    $\begingroup$ @Quantitative -- do not sabotage this site. $\endgroup$ Commented Apr 19, 2017 at 22:08