MathGroup Archive 1999

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

Search the Archive

Re: ? scatterplots with differently sized labels and dots ?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg15509] Re: ? scatterplots with differently sized labels and dots ?
  • From: "Allan Hayes" <hay at haystack.demon.co.uk>
  • Date: Mon, 18 Jan 1999 23:47:12 -0500
  • References: <77v2qm$kl4@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Nicholas Gessler wrote in message <77v2qm$kl4 at smc.vnet.net>...

>Example:  I wish to plot an inventory of iron artifacts according to
>catalog  number, weight, easting and northing.  The table looks like
>this:
>
>number   weight   easting   northing
>1        120        55        77
>2         50        49        63
>3        215        44        55
>4         10        65        44
>
>I want the dot size to be proportional to the weight so the plot might
>look  like this:
>
>                                [[1]]
>                         (2)
>             (((3)))
>                                         [4]
>


Nicholas,

There are many ways of doing this kind of thing - you might also like to
consider 3D forms.
Here are some ideas in 2D


data = {{1,120, 55,77},{2, 50, 49 ,63 },{3, 215, 44, 55 },
  {4 ,10 ,65 ,44} };

Show[Graphics[{
            {Hue[#[[2]]/300, 0.4, 1], Disk[#[[{3, 4}]], #[[2]]/40] },
            Circle[#[[{3,4}]], #[[2]]/40],
           Text[#[[1]],#[[{3,4}]],
           TextStyle-> {FontSize->18, FontWeight -> Bold}]}&/@data],
            AspectRatio-> Automatic,
            Frame ->True,
            GridLines -> Automatic,
            PlotRange -> {{30,70},{40, 85}} ];

Allan

---------------------
Allan Hayes
Mathematica Training and Consulting
www.haystack.demon.co.uk
hay at haystack.demon.co.uk
Voice: +44 (0)116 271 4198
Fax: +44 (0)870 164 0565




  • Prev by Date: Re: a tricky limit
  • Next by Date: Re: Special characters
  • Previous by thread: RE: ? scatterplots with differently sized labels and dots ?
  • Next by thread: Re: ? scatterplots with differently sized labels and dots ?