Re: Labeling points in ListPlot

*To*: mathgroup at smc.vnet.net*Subject*: [mg60161] Re: Labeling points in ListPlot*From*: AES <siegman at stanford.edu>*Date*: Mon, 5 Sep 2005 02:27:53 -0400 (EDT)*Organization*: Stanford University*References*: <dfe82c$7hj$1@smc.vnet.net>*Sender*: owner-wri-mathgroup at wolfram.com

In article <dfe82c$7hj$1 at smc.vnet.net>, Steve Gray <stevebg at adelphia.net> wrote: > I have a series of coordinates such as {{x1,y1},{x2,y2},...,{xn,yn}}, a > few dozen at most. I want to put labels on the points such as p1, > p2,...,pn, etc. in some desired typeface and size. I also need to > control the small offset between the label and the dot representing the > point. > Does Epilog have anything to do with this? Help doesn't say much about it. > Thank you for any info. > > Steve Gray Read up on Text and Epilog in Help. Something like Epilog->{ Text["p1", {x1,y1}, {-1,-1}], Text["p2", {x2,y2}, {-1,-1}], Text["p3", {x3,y3}, {-1,-1}], . . . } should do it. Changing the {-1,-1} values will change the offset. Setting TextStyle->{-----} as one of the plot options will define the FontFamily, FontSize, etc for the entire plot -- or you can replace "p1" (inlcuding the quote marks) by StyleForm["p1",<options>] (no quotes around this) for each of the p1 strings.