How to make cross section of earthquakes?

Dear GMT community,

I want to create a cross section like the example in the following image.

I’m using gmt 6. I’ve tried following the script in the example, but got an error. Here I attach the file that I have created.
this is a script file cros.dat (763 Bytes) .
this is an earthquake event file event.txt (413 Bytes) .

I need a solution for this,
thank you

Looks like you are using GMT 4 syntax in a GMT 6 modern mode - that is a no, no. Cannot have the kind of -B you are using nor can you say -JX. Only the very first -JX with the args are needed (and allowed).