TransWikia.com

Sided Exclusions in Plot

Mathematica Asked on April 13, 2021

Consider

Plot[Floor[x],{x,-5.5,5.5},ExclusionsStyle->{None,Blue}]

At each discontinuity, we get circles indicating the jump. Mathematically, Floor[x]=x at these discontinuities, which concides with the left part of the plot and not the right part. This is often indicated by the lower circle being solid and the upper circle being hollow. Can this check (does the boundary coincide with the left or right part) be performed automatically for each continuity, and manifest in the exclusions? For this example, it would appear something like

DiscretePlot[x,{x,-5,5},PlotRange->{-5.5,5.5},Filling->None,ExtentSize->Full,
  ExtentMarkers->{Graphics[{Thickness[.2],Circle[]}],"Point"}]

Effectively, the issue is that ExclusionsStyle doesn’t distinguish between left and right sides of the jump (as DiscretePlot does), and it also doesn’t allow for computation (as DiscretePlot doesn’t).

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP