MathGroup Archive 2004

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

Search the Archive

Re: plot variance(s)


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
>
>
> 



  • Prev by Date: Re: plot variance(s)
  • Next by Date: Re: 3D Plot
  • Previous by thread: Re: plot variance(s)
  • Next by thread: Re: plot variance(s)