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


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

Gnuplot Word labels

Started bycarolyne.bakasa@gmail.com
First post2016-09-15 22:39 -0700
Last post2016-09-20 13:03 +0200
Articles 3 — 2 participants

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


Contents

  Gnuplot Word labels carolyne.bakasa@gmail.com - 2016-09-15 22:39 -0700
    Re: Gnuplot Word labels Jörg Buchholz <bookwood4new@freenet.de> - 2016-09-20 08:08 +0200
      Re: Gnuplot Word labels Jörg Buchholz <bookwood4new@freenet.de> - 2016-09-20 13:03 +0200

#3395 — Gnuplot Word labels

Fromcarolyne.bakasa@gmail.com
Date2016-09-15 22:39 -0700
SubjectGnuplot Word labels
Message-ID<e4982d3e-5ea1-4ef9-a03b-3cf9ffbb191e@googlegroups.com>
Hello

Help me label my bar graphs with words. I have seen how to label with integers
but not words. I want to have Kim, Den, B3, CT, DL, M7 on top of the bars graphs

my data
-12.04               Kim
 -10.17              Den
 +9.00               B3
 -13.10              CT
 -12.80              DL
 -11.80              M7

Thank you

[toc] | [next] | [standalone]


#3398

FromJörg Buchholz <bookwood4new@freenet.de>
Date2016-09-20 08:08 +0200
Message-ID<nrqjoc$ud5$1@dont-email.me>
In reply to#3395
On 16.09.2016 07:39, carolyne.bakasa@gmail.com wrote:
> Hello
>
> Help me label my bar graphs with words. I have seen how to label with integers
> but not words. I want to have Kim, Den, B3, CT, DL, M7 on top of the bars graphs
>
> my data
> -12.04               Kim
>   -10.17              Den
>   +9.00               B3
>   -13.10              CT
>   -12.80              DL
>   -11.80              M7

plot 'my_data.dat' u 0:1 with boxes ,'' u 0:1:2 with labels center 
offset 0,1 notitle

"with labels" works with words (strings).

Jörg

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


#3399

FromJörg Buchholz <bookwood4new@freenet.de>
Date2016-09-20 13:03 +0200
Message-ID<nrr52f$ibh$1@dont-email.me>
In reply to#3398
On 20.09.2016 08:08, Jörg Buchholz wrote:
> On 16.09.2016 07:39, carolyne.bakasa@gmail.com wrote:
>> Hello
>>
>> Help me label my bar graphs with words. I have seen how to label with
>> integers
>> but not words. I want to have Kim, Den, B3, CT, DL, M7 on top of the
>> bars graphs
>>
>> my data
>> -12.04               Kim
>>   -10.17              Den
>>   +9.00               B3
>>   -13.10              CT
>>   -12.80              DL
>>   -11.80              M7
>
> plot 'my_data.dat' u 0:1 with boxes ,'' u 0:1:2 with labels center
> offset 0,1 notitle

All labels on top of the boxes:
plot 'labels.dat' u 0:1 with boxes ,'' u 0:($1 > 0 ? $1 : 0):2 with 
labels center offset 0,1 notitle

Jörg

[toc] | [prev] | [standalone]


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


csiph-web