Change limits of the coverage plot in PPSD plots

Hi guys,

is it possible to easily modify the time limits of the coverage plot at the bottom of a PPSD plot (in obspy.signal)?

I need to plot PPSDs for a whole array and for a quick overview over when which station worked, it would be best to set the limits of the coverage plot manually to the same days for all the stations.


Simon Stähler

Hi Simon,

you can do figure tweaking with matplotlib, e.g.:

import matplotlib.pyplot as plt
fig = plt.gcf()
ax = fig.axes[1]
t1 = UTCDateTime(2010, 1, 1)
t2 = UTCDateTime(2014, 1, 1)
from matplotlib.dates import num2date, date2num
ax.set_xlim(date2num(t1), date2num(t2))