Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #9365 > unrolled thread

Re: how can i get the Scatter chart

Started byBob Hanlon <hanlonr357@gmail.com>
First post2012-04-02 08:31 +0000
Last post2012-04-03 08:50 +0000
Articles 2 — 2 participants

Back to article view | Back to comp.soft-sys.math.mathematica

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: how can i get the Scatter chart Bob Hanlon <hanlonr357@gmail.com> - 2012-04-02 08:31 +0000
    Re: how can i get the Scatter chart nanobio9 <kuokan.liang@gmail.com> - 2012-04-03 08:50 +0000

#9365 — Re: how can i get the Scatter chart

FromBob Hanlon <hanlonr357@gmail.com>
Date2012-04-02 08:31 +0000
SubjectRe: how can i get the Scatter chart
Message-ID<jlbo51$47t$1@smc.vnet.net>
dist1 = NormalDistribution[];

data1 = RandomVariate[dist1, 100];

ListPlot[data1]

dist2 = MultinormalDistribution[{0, 0}, {{1, 0}, {0, 1}}];

data2 = RandomVariate[dist2, 100];

Graphics[Point[data2],
 Frame -> True]

dist3 = MultinormalDistribution[{0, 0, 0}, IdentityMatrix[3]];

data3 = RandomVariate[dist3, 100];

Graphics3D[Point[data3],
 Axes -> True]


Bob Hanlon


On Sun, Apr 1, 2012 at 3:37 AM,  <12146690@qq.com> wrote:
> I know The probability density function,and then how can i get the
> Scatter chart with Mathematica 8 ? not function's chart!
>

[toc] | [next] | [standalone]


#9379

Fromnanobio9 <kuokan.liang@gmail.com>
Date2012-04-03 08:50 +0000
Message-ID<jledkk$h1b$1@smc.vnet.net>
In reply to#9365
Hi,

For 2D case, ListPlot works equally well (and faster).

For 3D case, ListPointPlot3D do the same thing as below. Seems slow
but maybe still faster than using Graphics3D directly.

Best regards,
Kuo Kan Liang

> dist1 = NormalDistribution[];
>
> data1 = RandomVariate[dist1, 100];
>
> ListPlot[data1]
>
> dist2 = MultinormalDistribution[{0, 0}, {{1, 0}, {0, 1}}];
>
> data2 = RandomVariate[dist2, 100];
>
> Graphics[Point[data2],
>  Frame -> True]
>
> dist3 = MultinormalDistribution[{0, 0, 0}, IdentityMatrix[3]];
>
> data3 = RandomVariate[dist3, 100];
>
> Graphics3D[Point[data3],
>  Axes -> True]
>
> Bob Hanlon
>
>
>
>
>
>
>
> On Sun, Apr 1, 2012 at 3:37 AM,  <12146...@qq.com> wrote:
> > I know The probability density function,and then how can i get the
> > Scatter chart with Mathematica 8 ? not function's chart!

[toc] | [prev] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web