Page 1 of 1
Scatter with data labels
Posted: Mon Feb 21, 2011 9: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 11:21 am
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 9:23 pm
by slackscholar
Thank you so much for the prompt reply!
It works!