Re: How to plot strings s_i at point {x_i,y_i} ?
- To: mathgroup at smc.vnet.net
- Subject: [mg95037] Re: [mg95020] How to plot strings s_i at point {x_i,y_i} ?
- From: Bob Hanlon <hanlonr at cox.net>
- Date: Sun, 4 Jan 2009 07:31:41 -0500 (EST)
- Reply-to: hanlonr at cox.net
data = Table[{RandomInteger[{0, 100}], RandomInteger[{0, 100}], RandomChoice[CharacterRange["a", "z"]]}, {10}]; Graphics[Text[Last[#], Most[#]] & /@ data, Axes -> True, AxesOrigin -> {0, 0}] To use ListPlot and PlotMarkers, convert each data point into a separate list ListPlot[List /@ Most /@ data, PlotMarkers -> Last /@ data, AxesOrigin -> {0, 0}, AspectRatio -> 1] Bob Hanlon On Sat, Jan 3, 2009 at 10:19 AM , John wrote: > Hello! > > I have a set of triplets {{x1,y1,s1},{x2,y2,s2},...}. I would like to > make a plot where the third element of each triplet, a string, is > plotted at the coordinate given by the the first two elements of the > triplet. How can I acheive this? Of course I don't mind reorganizing > the format of the data. It seems to me that PlotMarkers is not willing > to help me, since I want different markes within the same data set. > > Regards, > John