       Re: Connecting discontinuous plots

• To: mathgroup at smc.vnet.net
• Subject: [mg93783] Re: [mg93734] Connecting discontinuous plots
• From: Bob Hanlon <hanlonr at cox.net>
• Date: Tue, 25 Nov 2008 07:20:39 -0500 (EST)

```Use ExclusionsStyle

p1 = UnitStep[t - 1];
p2 = UnitStep[t - 2];
Plot[#, {t, -1, 5},
PlotStyle -> {Red, Thick},
ExclusionsStyle -> Red,
Frame -> {True, True, False, False},
Axes -> False] & /@
{p1 - p2,
UnitStep[t - 1, 2 - t],
Piecewise[{{1, 1 < t < 2}}]} //
Column

Bob Hanlon

---- jsheinwald at comcast.net wrote:

=============
Hello,

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?

p1=UnitStep[t-1]
p2=UnitStep[t-2]
Plot[p1-p2,{t,-1,5},PlotStyle=C2=AE{Red, Thick}]

Thanks!

--

Bob Hanlon

```

• Prev by Date: Re: solve a problem in mathematica
• Next by Date: Re: Integration - another Integer as a result
• Previous by thread: RE: Connecting discontinuous plots
• Next by thread: Re: Connecting discontinuous plots