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

Plot line with labels

14 views
Skip to first unread message

schill...@gmail.com

unread,
Apr 25, 2013, 3:51:34 AM4/25/13
to


Having a plot with several traces. I want to plot one trace with labels.

plot "-" ls 3 notitle ,\
"-" ls 4 title "Trace 1", \
"-" ls 5 title "Trace 2" ,\
"-" with points ls 6 notitle
P1 1.5 17.962924780409974
P2 1.7 16.87322975464215
P3 1.9 15.960477502420257
P4 2.1 15.181442305531792
P5 2.3000000000000003 14.506370414707312
P6 2.5000000000000004 13.914021704740868
P7 2.7000000000000006 13.38877362790406
P8 2.900000000000001 12.918844829323474
P9 3.100000000000001 12.495160353435423
P10 3.300000000000001 12.110601416389963
e
...

How can I plot the first traces so that labels with P0 to P10 appear next to that point?

Regards Robert

Karl

unread,
Apr 25, 2013, 10:46:20 AM4/25/13
to
Have you tried that script? Because it doesn´t work at all for me, the
pseudofile "-" tries to read four datasets!

For the labels, use "using ($2+0.05):3:1 with labels"

Karl



schill...@gmail.com

unread,
Apr 26, 2013, 5:33:09 AM4/26/13
to
Hi Karl,


> Have you tried that script? Because it doesn´t work at all for me, the
> pseudofile "-" tries to read four datasets!

No, it's not supposed to be runnable. I marked the upcoming datasets with ...
That's why I'm asking for ;)

> For the labels, use "using ($2+0.05):3:1 with labels"

Is it then the following for the first dataset?
plot "-" using ($2+0.05):3:1 with labels ls 3 notitle ,\

Robert


0 new messages