Re: plot variance(s)

*To*: mathgroup at smc.vnet.net*Subject*: [mg51754] Re: plot variance(s)*From*: "Steve Luttrell" <steve_usenet at _removemefirst_luttrell.org.uk>*Date*: Mon, 1 Nov 2004 02:52:29 -0500 (EST)*References*: <cm22ra$gjj$1@smc.vnet.net>*Sender*: owner-wri-mathgroup at wolfram.com

Two things: Use <<Graphics`Colors` so that Mathematica knows what Red means. Use data = Table[{x,Sin[x]}, {x, 0, 2\[Pi]}]; to tell Mathematica what the abscissae are in your discrete Sin[x] plot. The default abscissae are 1,2,3,... which explains why your plots were not overlaid. Steve Luttrell "Steven Shippee" <slshippee at comcast.net> wrote in message news:cm22ra$gjj$1 at smc.vnet.net... > Input1: data = Table[Sin[x], {x, 0, 2\[Pi]}]; > > Input 2: p1 = ListPlot[data, > PlotStyle -> {Red, PointSize[0.03]}, DisplayFunction -> Identity]; > > Input 3: p2 = Plot[Sin[x], {x, 0, 2\[Pi]}, DisplayFunction -> Identity]; > > Input 4: Show[p1, p2, DisplayFunction -> $DisplayFunction]; > > Why doesn't p2 directly overlay the dots in p1? Thanks in advance, > > Steven Shippee > > slshippee at comcast.net > > 360-493-8353 > > >