Re: 2D plots of data points
- To: mathgroup at smc.vnet.net
- Subject: [mg109682] Re: 2D plots of data points
- From: "David Park" <djmpark at comcast.net>
- Date: Wed, 12 May 2010 07:31:26 -0400 (EDT)
datapoints = Flatten[Table[{x, y}, {x, 0, 2}, {y, -2, 0}], 1];
Graphics[
{Orange, Disk[#, 1/2] & /@ datapoints,
Black, Circle[#, 1/2] & /@ datapoints},
Frame -> True]
David Park
djmpark at comcast.net
http://home.comcast.net/~djmpark/
From: Niles [mailto:niels.martinsen at gmail.com]
Greetings, friends
I have the data-points {1,2,3}, {4,5,6} and {7,8,9} and I wish to plot
them in a 2D-plot (x,y) ranging from x:0..2 and y:-2..0. The
coordinates of the points should be
1: (0,0)
2: (1,0)
3: (2,0)
4: (0,-1)
5: (1,-1)
6: (2,-1)
7: (0,-2)
8: (1,-2)
9: (2,-2)
Is there a smart way of doing this? is it furthermore possible to make
the data-points larger, i.e. so there is no white-space between the
points? Any hints/help will be greatly appreciated.
Sincerely, Niles.