MathGroup Archive 2009

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

Search the Archive

Re: How to plot strings s_i at point {x_i,y_i} ?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg95033] Re: How to plot strings s_i at point {x_i,y_i} ?
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Sun, 4 Jan 2009 07:30:56 -0500 (EST)
  • References: <gjng76$2m5$1@smc.vnet.net>

Hi,

data = Sort[Table[RandomReal[], {10}, {2}], First[#1] < First[#2] &];
labels = StringJoin @@@
    Map[FromCharacterCode,
     Table[RandomInteger[{32, 96}], {10}, {8}], {2}];

and

Graphics[{Point[#[[1]]], Text[#[[2]], #[[1]], {-1, -1}] } & /@
   Transpose[{data, labels}], Frame -> True]

Regards
   Jens

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
> 


  • Prev by Date: Re: How to plot strings s_i at point {x_i,y_i} ?
  • Next by Date: Re: How to plot strings s_i at point {x_i,y_i} ?
  • Previous by thread: Re: How to plot strings s_i at point {x_i,y_i} ?
  • Next by thread: Re: How to plot strings s_i at point {x_i,y_i} ?