Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2004
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2004

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

Search the Archive

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



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