MathGroup Archive 2010

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

Search the Archive

Re: ListPlot

  • To: mathgroup at smc.vnet.net
  • Subject: [mg107870] Re: ListPlot
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Mon, 1 Mar 2010 04:45:13 -0500 (EST)

y[n_] := RandomReal[NormalDistribution[0, 1/n]]

You will see the results more readily by using by using Frame and larger markers.

data = Table[{x, y[x]}, {x, 3}, {15}];

yMax = Max[Abs[data][[All, All, 2]]];

ListPlot[data,
 PlotRange -> 1.05 yMax {-1, 1},
 Frame -> True, Axes -> False,
 PlotStyle -> AbsolutePointSize[6],
 AspectRatio -> 2]


Bob Hanlon

---- John <jwa0 at lehigh.edu> wrote: 

=============
Mathematica 6, XP windows

Help says ListPlot plots lists of points, but my attempts to plot the
following two lists failed:

  ListPlot[{{{1,y1},{1,y2},{1,y3}},{{2,y4},{2,y5},{2,y6}}}]

The second entries in each pair are simulated values of random
variables having the normal distribution, with specified parameters.

The plot would have instructional value because the students could
compare different samples side by side.

I would appreciate hearing from anyone who knows how to do this.

John




  • Prev by Date: Re: Identity from Erdelyi et al.
  • Next by Date: Re: ListPlot
  • Previous by thread: Re: Highlighting the line that is being currently evaluated
  • Next by thread: Re: ListPlot