8

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?

mrks
  • 1,421
  • 2
  • 12
  • 20

2 Answers2

12

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
zoli2k
  • 3,388
  • 4
  • 26
  • 36
1

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

plot 'dataFile.dat' with circles

Credit: Gnuplot: plot with circles of a defined radius

Ben Aveling
  • 842
  • 7
  • 13