Cross-section of earthquakes and focal mechanism together

Hi. I would like to ask how to plot the earthquakes (for example the aftershocks) and focal mechanism of the mainshock in cross-section

Check this link https://github.com/GenericMappingTools/2021-unavco-course/tree/main/seismology.

There is also its explanation on youtube: