Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GNUPLOT: dot plot with data depending dot size

I am trying plot data sets consisting of 3 coordinates: X-coordinate, x-coordinate and the number of occurrences. example:

1 2 10 
3 1 2
3 2 1

I would like to draw for every line a dot at x,y with a diameter which is depending on the third value.

Is that possible with Gnuplot?

like image 317
mrks Avatar asked Apr 22 '10 08:04

mrks


2 Answers

Create a 2D plot with variable point size. See the demo.

Example:

plot 'dataFile.dat' u 1:2:3 w points lt 1 pt 10 ps variable
like image 127
zoli2k Avatar answered Oct 31 '22 12:10

zoli2k


This is basically equivalent to the existing answer, just shorter:

plot 'dataFile.dat' with circles

Credit: Gnuplot: plot with circles of a defined radius

like image 41
Ben Aveling Avatar answered Oct 31 '22 12:10

Ben Aveling