Re: Plot DiracDelta[]
- To: mathgroup at smc.vnet.net
- Subject: [mg28489] Re: [mg28465] Plot DiracDelta[]
- From: Tomas Garza <tgarza01 at prodigy.net.mx>
- Date: Sun, 22 Apr 2001 01:30:20 -0400 (EDT)
- References: <200104200824.EAA23027@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Here you are facing a problem connected with the plotting process. The plotting process proceeds by joining line segments between successive points of the function, sampled according to some internal Mathematica rules. The points sampled in the particular example appear in In[1]:= FullForm[Plot[DiracDelta[x - 1], {x, 0, 2}]] You can see there that the abscissa x = 1 is not in the sample, so the vertical line at that point won't show. You may try to fiddle with the number of plot points, etc., but in this particular case you'd be better off if you force the inclusion of the vertical line using Epilog, for example. Now, just bear in mind that the DiracDelta "is there", it simply won't show in the graph because x = 1 was skipped by the plotting algorithm. Tomas Garza Mexico City ----- Original Message ----- From: "Max Ulbrich" <ulbrich at biochem.mpg.de> To: mathgroup at smc.vnet.net Subject: [mg28489] [mg28465] Plot DiracDelta[] > Hi, > > does anybody know if there is a possibility > to include the DiracDelta[] in a Plot? > If I have > > Plot[DiracDelta[x-1],{x,0,2}] > > I see nothing, but I would like to see > a vertical line at x=1. > > Max > >
- References:
- Plot DiracDelta[]
- From: Max Ulbrich <ulbrich@biochem.mpg.de>
- Plot DiracDelta[]