Scatter with data labels

For questions and discussion related to graphs, reports, and other output, including issues related to presenting or publishing results.

Scatter with data labels

Postby slackscholar » Mon Feb 21, 2011 10:03 am

Hi,

Would it be possible to make an X-Y scatter plot that comes with a label on each (x,y) point?

thanks!
slackscholar
 
Posts: 2
Joined: Wed Jan 05, 2011 3:46 am

Re: Scatter with data labels

Postby moderator » Mon Feb 21, 2011 12:21 pm

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
moderator
Site Admin
 
Posts: 306
Joined: Thu Oct 19, 2006 4:33 pm

Re: Scatter with data labels

Postby slackscholar » Mon Feb 21, 2011 10:23 pm

Thank you so much for the prompt reply!
It works!
slackscholar
 
Posts: 2
Joined: Wed Jan 05, 2011 3:46 am


Return to Graphics, Reports, and Other Output

Who is online

Users browsing this forum: No registered users and 0 guests

cron