MathGroup Archive 2010

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

Search the Archive

Re: ListPlot

  • To: mathgroup at smc.vnet.net
  • Subject: [mg107868] Re: ListPlot
  • From: Tomas Garza <tgarza10 at msn.com>
  • Date: Mon, 1 Mar 2010 04:44:51 -0500 (EST)

Perhaps something along the following lines might help:

y:==RandomReal[NormalDistribution[0,1]];
With[{samplesize==4,numberofsamples==5},
Graphics[Table[Style[Text[ToString[k],{j,y}],Red,Bold],{k,1,samplesize},{j,1,numberofsamples}],PlotRange->{{0.8,numberofsamples+0.2},{-3,3}},Frame->True,GridLines->{Table[j,{j,1,numberofsamples}],{-3,-2,-1,0,1,2,3}},FrameLabel->"sample number",FrameTicks->{Table[k,{k,1,numberofsamples}],Automatic}]]

The numbers in red are the values obtained in each sample (sometimes they will appear overwritten}. Instead of numbers you could use points in different colors, but it seems slightly more complicated.

Tomas

> Date: Sun, 28 Feb 2010 04:52:59 -0500
> From: jwa0 at lehigh.edu
> Subject: [mg107837] ListPlot
> To: mathgroup at smc.vnet.net
>
> 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: Distributing "Large" Expressions to Remote Nodes
  • Next by Date: Re: ListPlot
  • Previous by thread: Re: ListPlot
  • Next by thread: Re: ListPlot