The following lines show how to create a graphical representation of a focal mechanism.
from obspy.imaging.beachball import Beachball mt = [0.91, -0.89, -0.02, 1.78, -1.55, 0.47] Beachball(mt, size=200, linewidth=2, color='b')