Mathematica 9 is now available
Student Support Forum
Student Support Forum > General > > "Markers in a ListPlot"

Post Reply:
Email Address:

Please send email when my message is replied to.

Url (optional):
Message: view original message?
Attachment (optional):
Please answer this:2+2 =

Original Message (ID '46221') By Bill Simpson:
Using PlotMarkers it would be easy to label each point in list1 with "1" and each point in list2 with "2", but I think I understand you want to label the first point of both lists with "1"s, the second point of both lists with "2"s, etc. Perhaps you can see how to adapt this: In[1]:= list1={{1,1},{2,5},{3,4}}; table1=Table[Text[i,list1[[i]]], {i,1,Length[list1]}]; list2={{1,2},{2,3},{3,1}}; table2=Table[Text[i,list2[[i]]], {i,1,Length[list2]}]; Show[Plot[0, {x,0,4}], Graphics[{table1, table2}]] From In[1]:= What that does is manually turn each of your points into a Text item and then Show[Graphics[]] will display those. And then I stuck in an "empty plot" to automatically create the axes for me. Try that to verify it works for you. Then try using your own data and see if you can make any needed adjustments to get what you want. There might be a trick somewhere with PlotMarkers to do all this for you, but it might take longer to find and figure it out than it takes to do this.