Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #1868 > unrolled thread

Scatter plot with a label on each point

Started byginosal <lu.salvati@gmail.com>
First post2013-05-31 01:07 -0700
Last post2015-04-18 17:10 -0700
Articles 5 — 5 participants

Back to article view | Back to comp.graphics.apps.gnuplot


Contents

  Scatter plot with a label on each point ginosal <lu.salvati@gmail.com> - 2013-05-31 01:07 -0700
    Re: Scatter plot with a label on each point Christoph Bersch <usenet@bersch.net> - 2013-05-31 10:19 +0200
      Re: Scatter plot with a label on each point pietrodcof@gmail.com - 2015-04-18 05:14 -0700
        Re: Scatter plot with a label on each point Gavin Buxton <gavinbuxton@gmail.com> - 2015-04-18 07:00 -0700
          Re: Scatter plot with a label on each point Ethan A Merritt <EAMerritt@gmail.com> - 2015-04-18 17:10 -0700

#1868 — Scatter plot with a label on each point

Fromginosal <lu.salvati@gmail.com>
Date2013-05-31 01:07 -0700
SubjectScatter plot with a label on each point
Message-ID<3f0ed7d8-744f-45dc-b289-42ecf17a630a@googlegroups.com>
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

[toc] | [next] | [standalone]


#1869

FromChristoph Bersch <usenet@bersch.net>
Date2013-05-31 10:19 +0200
Message-ID<ko9m77$5su$1@dont-email.me>
In reply to#1868
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

[toc] | [prev] | [next] | [standalone]


#2885

Frompietrodcof@gmail.com
Date2015-04-18 05:14 -0700
Message-ID<5c08b6c6-8ccc-409c-9ce4-69237ebf7869@googlegroups.com>
In reply to#1869
Il giorno venerdì 31 maggio 2013 10:19:58 UTC+2, Christoph Bersch ha scritto:
> 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

How to also add points?

[toc] | [prev] | [next] | [standalone]


#2886

FromGavin Buxton <gavinbuxton@gmail.com>
Date2015-04-18 07:00 -0700
Message-ID<c5abe852-9e36-4258-ade4-183972bd1539@googlegroups.com>
In reply to#2885
On Saturday, April 18, 2015 at 8:14:44 AM UTC-4, pietr...@gmail.com wrote:
> Il giorno venerdì 31 maggio 2013 10:19:58 UTC+2, Christoph Bersch ha scritto:
> > 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
> 
> How to also add points?

plot 'datafile' using 2:($1-5):3 with labels, '' u 2:1

[toc] | [prev] | [next] | [standalone]


#2887

FromEthan A Merritt <EAMerritt@gmail.com>
Date2015-04-18 17:10 -0700
Message-ID<mguro6$o65$1@dont-email.me>
In reply to#2886
Gavin Buxton wrote:

> On Saturday, April 18, 2015 at 8:14:44 AM UTC-4, pietr...@gmail.com
> wrote:
>> Il giorno venerdì 31 maggio 2013 10:19:58 UTC+2, Christoph Bersch ha
>> scritto:
>> > 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
>> 
>> How to also add points?
> 
> plot 'datafile' using 2:($1-5):3 with labels, '' u 2:1

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

[toc] | [prev] | [standalone]


Back to top | Article view | comp.graphics.apps.gnuplot


csiph-web