|
From: Wolf D. <dre...@ve...> - 2009-10-15 14:07:04
|
Hello,
months ago I issued a request to visualize the traffic of a small bus
network. At that time that was preparation for a project ahead, which
now has to be worked upon.
The task is this:
I have a list, each line contains a pair of bus stops, represented by
cartesian coordinates and a number of passengers travelling between
these two stops. Thomas was so kind to propose a solution for this
issue, unluckily I could not make it work up to now. The suggestion
was the following:
set terminal aqua font "Times,5"
number_of_busstops = 271
plot "FGZ.xls" using 2:(my_lw=$1, 0/0) every 1::0::0 notitle, for
[i=1:number_of_busstops] "" using 2:(my_lw=$1, $3) every 1::(i-1)::i
with lines linetype 1 linewidth my_lw notitle
Using gnuplot 4.2.5 on a Mac I get this result:
gnuplot> set terminal aqua font "Times,5"
Terminal type set to 'aqua'
Options are '0 title "Figure 0" size 846 594 font "Times,5"
noenhanced solid'
gnuplot> number_of_busstops = 271
gnuplot> plot "FGZ.xls" using 2:(my_lw=$1, 0/0) every 1::0::0
notitle, for [i=1:number_of_busstops] "" using 2:(my_lw=$1, $3) every
1::(i-1)::i with lines linetype 1 linewidth my_lw notitle
^
')' expected
The "^" points exactly at that place:
plot "FGZ.xls" using 2:(my_lw=^
I'd be grateful for any support to make this little script work.
Greetings,
Wolf
++++++++++++++++++++++++++++++++++++++++++++++++++++
+ Wolf Drechsel
+ Köhnstr. 54
+ D - 90478 Nürnberg
+ Tel.: 0911 / 4 71 98 49
+ dre...@ve...
++++++++++++++++++++++++++++++++++++++++++++++++++++
|