PlotPoints

PlotPoints
is an option for plotting functions that specifies how many initial sample points to use.

DetailsDetails

  • With a single variable, PlotPoints->n specifies the total number of initial sample points to use.
  • With more than one variable, PlotPoints->n specifies that n initial points should be used in each direction.
  • PlotPoints->{n1, n2, ...} specifies different numbers of initial sample points for each successive direction.
  • The initial sample points are usually equally spaced.
  • Adaptive procedures controlled by MaxRecursion are used to choose more sample points.

ExamplesExamplesopen allclose all

Basic Examples (4)Basic Examples (4)

Use 10 points in each direction:

In[1]:=
Click for copyable input
Out[1]=

MaxRecursion will cause additional sampling beyond the initial 10 points:

In[1]:=
Click for copyable input
Out[1]=

Use 50 points along the direction:

In[1]:=
Click for copyable input
Out[1]=

Use different numbers of points for different variables:

In[1]:=
Click for copyable input
Out[1]=
New in 1 | Last modified in 6
New to Mathematica? Find your learning path »
Have a question? Ask support »