Wolfram Language

Visualization: Labels, Scales, Exclusions

Identify Types of Singularities and Discontinuities

Highlight the different types of singularities and discontinuities in a function.

In[1]:=
Click for copyable input
options = Sequence @@ {ExclusionsStyle -> Dashed, PlotTheme -> "Minimal", ImageSize -> 400, PlotRange -> {-7, 8}}; Plot[Callout[ Floor[x] + Tan[x], {"pole", "piecewise jump"}, {{3 Pi/8, -3}, {2.5, 3}}, {{Pi/2, -2}, {3, 2.3}}, LabelStyle -> Medium], {x, 0, Pi}, Evaluate@options]
Out[1]=

Specify a type of exclusion to remove.

In[2]:=
Click for copyable input
Grid[Partition[{ Plot[Floor[x] Tan[x], {x, 0, 2 Pi}, ImageSize -> 250, Exclusions -> "Discontinuities", PlotLabel -> "Discontinuities"], Plot[Floor[x] Tan[x], {x, 0, 2 Pi}, ImageSize -> 250, Exclusions -> "Singularities", PlotLabel -> "Singularities"]}, 2]]
Out[2]=

Related Examples

de es fr ja ko pt-br ru zh