开发者

GNUPLOT: dot plot with data depending dot size

开发者 https://www.devze.com 2022-12-27 14:33 出处:网络
I am trying plot data sets consisting of 3 coordinates: X-coordinate, x-coordinate and the number of occurrences.

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 开发者_StackOverflowdiameter which is depending on the third value.

Is that possible with Gnuplot?


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


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

plot 'dataFile.dat' with circles

Credit: Gnuplot: plot with circles of a defined radius

0

精彩评论

暂无评论...
验证码 换一张
取 消