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)
- Reply-to: hanlonr at cox.net
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