If you want to plot a discontinuous functions, by example with this
using Plots r = -5:.1:5 plot(r, floor.(r))
you get a graph with a continuous line, however the function have a discontinuity at any integer. How to prevent that the graph would be a continuous line, that it plot correctly jumps at each discontinuity point?