traffic plotting

View: New views
5 Messages — Rating Filter:   Alert me  

traffic plotting

by herrdeh :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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
+ drechsel@...
++++++++++++++++++++++++++++++++++++++++++++++++++++




------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Gnuplot-info mailing list
Gnuplot-info@...
https://lists.sourceforge.net/lists/listinfo/gnuplot-info

Re: traffic plotting

by Thomas Sefzick :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

seems, that your version of gnuplot doesn't interpret the '=' in the
'using' statement.
do you use the development version (4.3-cvs)?

herrdeh wrote:
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
+ drechsel@verkehrsplanung.com
++++++++++++++++++++++++++++++++++++++++++++++++++++




------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Gnuplot-info mailing list
Gnuplot-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnuplot-info

Re: traffic plotting

by herrdeh :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> seems, that your version of gnuplot doesn't interpret the '=' in the
> 'using' statement.
> do you use the development version (4.3-cvs)?

>> Using gnuplot 4.2.5 on a Mac I get this result:

No, I did it the easy way and installed the most recent version  
available using macports.

As I'm not really an expert I'd be quite happy not having to try very  
special things. Installing development versions seems to be possible  
by macports, but:

"However, fetching via CVS may cause non-reproducible builds, so it  
is strongly discouraged"

So - can we do it on the 4.2.5 as well?

Greetings,

Wolf
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Gnuplot-info mailing list
Gnuplot-info@...
https://lists.sourceforge.net/lists/listinfo/gnuplot-info

Re: traffic plotting

by Thomas Sefzick :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

there are many new features which haven't been backported from
4.3 to 4.2.x.

so you may
- wait for gnuplot 4.4
- ask somebody at macports or fink to compile 4.3-cvs
- compile it by yourself

herrdeh wrote:
> seems, that your version of gnuplot doesn't interpret the '=' in the
> 'using' statement.
> do you use the development version (4.3-cvs)?

>> Using gnuplot 4.2.5 on a Mac I get this result:

No, I did it the easy way and installed the most recent version  
available using macports.

As I'm not really an expert I'd be quite happy not having to try very  
special things. Installing development versions seems to be possible  
by macports, but:

"However, fetching via CVS may cause non-reproducible builds, so it  
is strongly discouraged"

So - can we do it on the 4.2.5 as well?

Greetings,

Wolf
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Gnuplot-info mailing list
Gnuplot-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnuplot-info

4.4

by herrdeh :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello everybody,
and very special greetings to Thomas,

I wasted some time with compiling - but I'm not the very expert  
there… - So in order to decide whether to keep on trying or rather  
waiting I'd like to know:

Is there any idea around when gnuplot 4.4 is going to come? - As a  
christmas present maybe?  ((-;

Thanks and greetings,

Wolf

>
> there are many new features which haven't been backported from
> 4.3 to 4.2.x.
>
> so you may
> - wait for gnuplot 4.4
> - ask somebody at macports or fink to compile 4.3-cvs
> - compile it by yourself

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Gnuplot-info mailing list
Gnuplot-info@...
https://lists.sourceforge.net/lists/listinfo/gnuplot-info