|
From: Thomas S. <t.s...@fz...> - 2009-05-11 15:30:48
|
plot 'datafile' using 1:2:3 with points pointtype 5 pointsize variable (the 'using 1:2:3" is not really needed in your case) for more information, see http://www.gnuplot.info/docs/node145.html herrdeh wrote: > > Hello everybody out there, > > I managed to install gnuplot on a mac - wow, how proud am I… ((-; > > Now the fun stuff is over and I have to turn towards work… )-: > > Beeing a public transport consultant, I want to plot a map of the numbers > of boarding passengers at each bus stop within a small bus network. There > are the geographic coordinates of the bus stops (x and y values) and the > numbers of boarding passengers (sort of the z values) - but it should not > make a 3D graph, the z value should be represented by the dot size in the > (x;y) position instead. > > Can anybody give me a hint? - I hope I'm clear enough… > > Thanks and greetings, > > Wolf > -- View this message in context: http://www.nabble.com/x-y-z-plot%2C-z-value-by-dot-size--tp23479708p23485660.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: Wolf D. <dre...@ve...> - 2009-05-11 17:25:16
|
Hello, I went a big bit ahead! - Wow, thanks a lot. I used plot [60:120] [60:120] "Lage-HST-Herzo.csv" using 1:2:4 with points pointtype 5 pointsize variable to make it look quite close to what I want. Now there are some details remaining: * How can I avoid the axes to be plotted? * How can I make the "points" look like circles? * How can I plot the figure in column 4 (which contains the point size = number of boarding passengers) besides each point? Thanks a lot and greetings, Wolf |
|
From: Thomas S. <t.s...@fz...> - 2009-05-11 18:13:21
|
herrdeh wrote: > > Hello, > > I went a big bit ahead! - Wow, thanks a lot. > > I used > > plot [60:120] [60:120] "Lage-HST-Herzo.csv" using 1:2:4 with points > pointtype 5 pointsize variable > > to make it look quite close to what I want. > Now there are some details remaining: > > * How can I avoid the axes to be plotted? > unset border unset xtics unset ytics herrdeh wrote: > > * How can I make the "points" look like circles? > have a look at the 'test' command (instead of 'plot'), it shows the capabilities of the terminal you are using. circles: pointtype 6 herrdeh wrote: > > * How can I plot the figure in column 4 (which contains the point > size = number of boarding passengers) besides each point? > plot 'with labels', see http://www.gnuplot.info/docs/node145.html and http://gnuplot.sourceforge.net/demo/datastrings.html herrdeh wrote: > > Thanks a lot and greetings, > > Wolf > -- View this message in context: http://www.nabble.com/x-y-z-plot%2C-z-value-by-dot-size--tp23479708p23488615.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: Wolf D. <dre...@ve...> - 2009-05-13 08:29:46
|
Hello everybody, I'm making further progress - I'm quite close to my goal. One further detail: I'd like to have the labels outside the edge of the circles - means the offset should be diameter-dependent - in a ratio to the value of one of the columns. I tried something like labels center offset ($1/10),0 column 1 is containing the relevant values. But this doesnt work. Does anybody have an idea? Thanks and greetings, Wolf |
|
From: Thomas S. <t.s...@fz...> - 2009-05-13 13:19:27
|
just shift the x-position of the labels: plot "datafile" with points linetype 1 pointtype 6 pointsize variable, \ "" using ($1+$3*0.04):2:3 with labels notitle herrdeh wrote: > > Hello everybody, > > I'm making further progress - I'm quite close to my goal. > > One further detail: > > I'd like to have the labels outside the edge of the circles - means > the offset should be diameter-dependent - in a ratio to the value of > one of the columns. > > I tried something like > > labels center offset ($1/10),0 > > column 1 is containing the relevant values. But this doesnt work. > > Does anybody have an idea? > > Thanks and greetings, > > Wolf > > > > ------------------------------------------------------------------------------ > The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your > production scanning environment may not be a perfect world - but thanks to > Kodak, there's a perfect scanner to get the job done! With the NEW KODAK > i700 > Series Scanner you'll get full speed at 300 dpi even with all image > processing features enabled. http://p.sf.net/sfu/kodak-com > _______________________________________________ > Gnuplot-info mailing list > Gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-info > > -- View this message in context: http://www.nabble.com/x-y-z-plot%2C-z-value-by-dot-size--tp23479708p23521589.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: Wolf D. <dre...@ve...> - 2009-05-14 07:30:45
|
Hello everybody, I could finish my x-y-z-plot happily - thanks, this will be very useful for my work. Now a second issue comes up: I'd like to visualize the number of passengers between the different bus tops. Data could be given in 3 columns: <number_of_passengers>, <x-coordinate>, < y-coordinate>. The number_of_passengers values should be expressed by the thickness of the lines between the bus stops (expressed by coordinates). How can I do that? Greetings, Wolf |
|
From: Thomas S. <t.s...@fz...> - 2009-05-14 10:33:20
|
herrdeh wrote: > > Now a second issue comes up: > > I'd like to visualize the number of passengers between the different > bus tops. Data could be given in 3 columns: <number_of_passengers>, > <x-coordinate>, < y-coordinate>. > > The number_of_passengers values should be expressed by the thickness > of the lines between the bus stops (expressed by coordinates). > > How can I do that? > you could draw each connection between subsequent bus stops separately, with gnuplot 4.3-cvs you could use the 'for' loop. let's assume, that each data line contains the number of passengers leaving the bus stop at the coordinate given by x and y: number_of_busstops = 10 plot "datafile" 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 -- View this message in context: http://www.nabble.com/x-y-z-plot%2C-z-value-by-dot-size--tp23479708p23538011.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |