How do I accomplish a bubble diagram

I would like to plot a bubble diagram, where each data point has three numbers; x,y and a size (the radius of the bubbles).

Despite extensive search on the Internet I have not come across any example in julia.

Thanks

scatter plot? Various Julia plotting examples using PyPlot · GitHub

2 Likes

For Gadfly, use the size aesthetic:

coord = Coord.cartesian(xmin=0, xmax=1, ymin=0, ymax=1)
p = plot(x=rand(100), y=rand(100), size=rand(1:8, 100)./150, Geom.point, coord)

Note the status of a sizekey is to be done.

1 Like

You can use scatter in PyPlot: scatter(x,y, s=radii)

Thank you! Scatterplot that was what I was looking for.