Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2008

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

Search the Archive

RE : [mg93734] Connecting discontinuous plots

  • To: mathgroup at smc.vnet.net
  • Subject: [mg93746] RE : [mg93734] Connecting discontinuous plots
  • From: "Jaccard Florian" <Florian.Jaccard at he-arc.ch>
  • Date: Mon, 24 Nov 2008 06:45:01 -0500 (EST)
  • References: <200811240914.EAA00915@smc.vnet.net>

Sure!

p1 = UnitStep[t - 1]

p2 = UnitStep[t - 2]

Plot[p1 - p2, {t, -1, 5}, PlotStyle -> {Red, Thick},

ExclusionsStyle -> {{Red, Thick}}]

Do you know this ?

f[t_] := Piecewise[{{1, 1 < t < 2}}]

Plot[f[t], {t, -1, 5}, PlotStyle -> {Red, Thick},

ExclusionsStyle -> {{Red, Thick}}]

Regards


Florian Jaccard
________________________________

De: jsheinwald at comcast.net [mailto:jsheinwald at comcast.net]
Date: lun. 24.11.2008 10:14
=C0: mathgroup at smc.vnet.net
Objet : [mg93734] Connecting discontinuous plots



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=AE{Red, Thick}]

Thanks!





  • Prev by Date: Re: Primed Symbols in Mathematica
  • Next by Date: RE : [mg93714] ContourPlot and ColorFunction Opaci
  • Previous by thread: Connecting discontinuous plots
  • Next by thread: Re: Connecting discontinuous plots