How can we mapped earthquake size in circle of different radius and color based on depth cpr

Look at plot with option -Sc (symbol circle [3rd column = size]) and -Ccolor.cpt (related to makecpt module)

gmt makecpt -T0/9 > color.cpt
gmt plot file.txt -Sc -Ccolor.cpt

text.txt = lon | lat | depth(radius)