16
$\begingroup$

Many plotting functions have a Method options with descriptions like this:

  • Plot: "the method to use for refining curves"
  • RegionPlot: "the method to use for refining regions"
  • ContourPlot: "the method to use for refining contours"

The purpose of this option is documented (control mesh refinement), but its possible values are not.

What values can we use for this option in plotting functions, especially as relating to mesh refinement?


I found a number of related questions, but there the answers only provide starting points. There is no discussion of how to control mesh/curve refinement.

$\endgroup$
  • 1
    $\begingroup$ I'm sure you're aware of MaxBend/Refinement -> {ControlValue -> (* radian angle *) } for Plot[] and ParametricPlot[], at least. (I don't know if there are other functions that accept these settings.) $\endgroup$ – J. M. is away Sep 25 '17 at 8:37
  • $\begingroup$ @J.M. Right! I actually forgot about those. In this case my starting point was RegionPlot, then later I noticed that the description of the Method option is almost identical for all plotting fuctions. $\endgroup$ – Szabolcs Sep 25 '17 at 8:40
5
$\begingroup$

I found one:

For ParametricPlot3D (and Plot, Plot3D),

Method -> {"BoundaryOffset" -> False}

causes the sampling to include the end points of the interval(s), for both surfaces and curves. By default, end points are not included.

Contrariwise, for ParametricPlot,

Method -> {"BoundaryOffset" -> True}

cause the sampling to be inset slightly from the end points of the interval(s), for both curves and regions. By default, the end point are included.

I discovered this looking for an answer to Unexpected Holes in Contourplot3D.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.