- Inventory.plot_response(min_freq, output='VEL', network='*', station='*', location='*', channel='*', time=None, starttime=None, endtime=None, axes=None, unwrap_phase=False, plot_degrees=False, show=True, outfile=None, label_epoch_dates=False)
Show bode plot of instrument response of all (or a subset of) the inventory’s channels.
min_freq (float) – Lowest frequency to plot.
output (str) –
Output units. One of:
displacement, output unit is meters
velocity, output unit is meters/second
acceleration, output unit is meters/second**2
default units, the response is calculated in output units/input units (last stage/first stage). Useful if the units for a particular type of sensor (e.g., a pressure sensor) cannot be converted to displacement, velocity or acceleration.
UTCDateTime) – Only regard networks/stations/channels active at given point in time.
UTCDateTime) – Only regard networks/stations/channels active at or after given point in time (i.e. networks ending before given time will not be shown).
UTCDateTime) – Only regard networks/stations/channels active before or at given point in time (i.e. networks starting after given time will not be shown).
axes (list of 2
matplotlib.axes.Axes) – List/tuple of two axes instances to plot the amplitude/phase spectrum into. If not specified, a new figure is opened.
unwrap_phase (bool) – Set optional phase unwrapping using NumPy.
plot_degrees (bool) – if
Trueplot bode in degrees
show (bool) – Whether to show the figure after plotting or not. Can be used to do further customization of the plot before showing it.
outfile (str) – Output file path to directly save the resulting image (e.g.
"/tmp/image.png"). Overrides the
showoption, image will not be displayed interactively. The given path/file name is also used to automatically determine the output format. Supported file formats depend on your matplotlib backend. Most backends support png, pdf, ps, eps and svg. Defaults to
label_epoch_dates (bool) – Whether to add channel epoch dates in the plot’s legend labels.
>>> from obspy import read_inventory >>> inv = read_inventory() >>> inv.plot_response(0.001, station="RJOB")