MathGroup Archive 2008

[Date Index] [Thread Index] [Author Index]

Search the Archive

RE: Connecting discontinuous plots

  • To: mathgroup at
  • Subject: [mg93785] RE: [mg93734] Connecting discontinuous plots
  • From: "David Park" <djmpark at>
  • Date: Tue, 25 Nov 2008 07:21:01 -0500 (EST)
  • References: <21144462.1227518368928.JavaMail.root@m02>

Use the Exclusions option.

p1 = UnitStep[t - 1]
p2 = UnitStep[t - 2]
Plot[p1 - p2, {t, -1, 5},
 PlotStyle -> {Red, Thick},
 Exclusions -> None]

David Park
djmpark at 

From: jsheinwald at [mailto:jsheinwald at] 


In the following simple step function plot is there a way to connect the
discontinuities at 1 and 2 so that the plot shows up better?

 Plot[p1-p2,{t,-1,5},PlotStyleR{Red, Thick}]


  • Prev by Date: How to convert a HeavisideTheta to a PieceWise function
  • Next by Date: Re: solve a problem in mathematica
  • Previous by thread: Re: Connecting discontinuous plots
  • Next by thread: Re: Connecting discontinuous plots