Exclusions

Exclusions
is an option that specifies where to exclude in regions used by functions like Plot, Plot3D, and NIntegrate.

DetailsDetails

  • The following settings can be given:
  • Noneexclude nothing
    Trueexclude subregions associated with discontinuities
    {x1,x2,...}exclude specific points
    lhs==rhsexclude a subregion defined by an equation
    {lhs1=rhs1,lhs2=rhs2,...}exclude several subregions defined by equations
    {{lhs1=rhs1,ineqs1},...}exclude subregions defined by equations and inequalities
  • Exclusions->Automatic is effectively equivalent to Exclusions->True if $PerformanceGoal is , and to Exclusions->None otherwise.
  • For a region defined by n variables, excluded subregions must be of dimension .
  • Exclusions->True excludes all subregions where discontinuities are found in functions being plotted. The discontinuities can involve either finite or infinite jumps in function values.
  • Exclusions->{{lhs1==rhs1, ineqs1}, ...} excludes subregions defined by a single equation and any combination of inequalities.
  • Exclusions->{Automatic, {lhs1==rhs1, ...}, ...} excludes both subregions found automatically and specified explicitly.
  • For plotting functions, ExclusionsStyle specifies how to draw excluded subregions and their boundaries.

ExamplesExamplesopen allclose all

Basic Examples (5)Basic Examples (5)

Exclude portions of a surface where it has jumps:

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

Leave the surface entirely connected:

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

Exclude portions of a curve where it has jumps:

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

Exclude a fixed set of points:

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

Specify where the function is discontinuous:

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