Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Scatter plot with a label on each point

1,824 views
Skip to first unread message

ginosal

unread,
May 31, 2013, 4:07:19 AM5/31/13
to
Hi. I would like to plot the following data, using column one as y and column two as x, and column 3 as labels for each point. How can I obtain the labels? Thank you.

#FRE PAR COU
96 89 DEN
52 27.2 ECU
41 26.4 EGY
2 4.8 ERI
90 77.5 EST
1 1 ETH
97 88.6 FIN
80 77.2 FRA
70 37 GEO
85 82.7 GER
65 14 GHA
82 69.8 GIB
60 53 GRE
90 90.2 GRO
62 16.5 GUA
50 8.6 HAI
40 15.9 HON
81 59 HUN
61 10 IND
98 97.8 ISL

Christoph Bersch

unread,
May 31, 2013, 4:19:58 AM5/31/13
to
Am 31.05.2013 10:07, schrieb ginosal:
> Hi. I would like to plot the following data, using column one as y
> and column two as x, and column 3 as labels for each point.

plot 'datafile' using 2:1:3 with labels

Christoph

pietr...@gmail.com

unread,
Apr 18, 2015, 8:14:44 AM4/18/15
to
How to also add points?

Gavin Buxton

unread,
Apr 18, 2015, 10:00:17 AM4/18/15
to
plot 'datafile' using 2:($1-5):3 with labels, '' u 2:1

Ethan A Merritt

unread,
Apr 18, 2015, 8:10:42 PM4/18/15
to
Alternatively, ...

All labels have properties (font, justification, {no}enhanced, etc)
including {no}point {pointttype} {pointsize} {offset x,y}.
The default is nopoint but you can specify that you want points as part
of the labels command, e.g.:

plot 'datafile' using 2:1:3 with labels point pt 7 offset .5, 0


0 new messages