mtuq.graphics.plot_polarities

mtuq.graphics.plot_polarities(filename, observed, predicted, stations, origin, mt, **kwargs)[source]

Plots first-motion polarities

Required arguments

filename (str): Name of output image file

observed (list or dict) Observed polarities for all stations (+1 positive, -1 negative, 0 unpicked)

predicted (list or dict) Predicted polarities for all stations (+1 positive, -1 negative)

stations (list): List containting station names, azimuths and takeoff angles

origin (mtuq.Origin): Origin object

mt (mtuq.MomentTensor): Moment tensor object