Scatter with data labels

Posted:
Mon Feb 21, 2011 10:03 am
by slackscholar
Hi,
Would it be possible to make an X-Y scatter plot that comes with a label on each (x,y) point?
thanks!
Re: Scatter with data labels

Posted:
Mon Feb 21, 2011 12:21 pm
by moderator
Yes, you can use GRTEXT to do that. You need to wrap the whole thing in an SPGRAPH, do the SCATTER and then do a GRTEXT command for each point you want to label. You'll probably want to use a loop over the entries to do that. Use the Y option and either the ENTRY or X option to specify the positioning of the labels.
For something similar, see the second example under GRTEXT in the Reference Manual.
Regards,
Tom Maycock
Estima
Re: Scatter with data labels

Posted:
Mon Feb 21, 2011 10:23 pm
by slackscholar
Thank you so much for the prompt reply!
It works!