Skip to content
Advertisement

ObsPy Plot Beachball in Time Series

I am trying to plot an ObsPy (or any python) seismic focal mechanism in time series.

JavaScript

When using an integer/float series for x it works fine, but the time series fails here:

JavaScript

The function xy2patch in the source code is trying to scale the time by a float value.

Any ideas? Hack the source? Other packages? Thanks.

Advertisement

Answer

Found it. Convert times to matplotlib float representation.

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement