MathGroup Archive 2008

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

Search the Archive

Re: Labeling points


AngleWyrm wrote:
> Here's a graphic I created for a discussion on game theory:
> http://home.comcast.net/~anglewyrm/thread/dps.png
> 
> I put the text next to the points in as a post-processing step by hand in 
> PhotoShop.
> 
> Is there a way to get mathematica to display such information? 

Here are some random points with labels:

points = Table[{RandomReal[1, 2], i}, {i, 10}]

If the graphic will be sent to people who have Mathematica 6, use Tooltip:

Graphics[Tooltip[Point[#1], #2] & @@@ points]

Otherwise you could use Text:

Graphics[{Point[#1], Text[#2, #1, {-3, 0}]} & @@@ points]



  • Prev by Date: Re: Labeling points
  • Next by Date: Re: Labeling points
  • Previous by thread: Re: Labeling points
  • Next by thread: Re: Labeling points